Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to nicer quoting for YAML conditions #306

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Conversation

sethvargo
Copy link
Contributor

This is a verbanicm@ trick, but using a multi-line avoids the double-quoting.

This is a verbanicm@ trick, but using a multi-line avoids the double-quoting.
@sethvargo sethvargo requested a review from verbanicm February 21, 2024 01:30
@sethvargo sethvargo requested a review from a team as a code owner February 21, 2024 01:30
@sethvargo sethvargo requested a review from sailorlqh February 21, 2024 01:30
@sethvargo sethvargo enabled auto-merge (squash) February 21, 2024 01:30
Copy link
Contributor

@verbanicm verbanicm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need the ${{}} when doing this

@sethvargo
Copy link
Contributor Author

The syntax highlighting is nicer though:

screenshot-20240220-IQbYQXQ2@2x

@sethvargo sethvargo requested a review from verbanicm February 21, 2024 01:39
@sethvargo
Copy link
Contributor Author

Also, it's required when the result is expected to be a boolean:

screenshot-20240220-C9z4RPoC@2x

@sethvargo sethvargo merged commit 4b8d5d3 into main Feb 21, 2024
2 checks passed
@sethvargo sethvargo deleted the sethvargo/quote branch February 21, 2024 01:48
@token-minter-prod token-minter-prod bot mentioned this pull request Mar 5, 2024
token-minter-prod bot added a commit that referenced this pull request Mar 5, 2024
## What's Changed
* feat: add draft prs to create-pull-request by @verbanicm in
#303
* Add cleanup scripts by @sethvargo in
#289
* Fix race with using DefaultLogger by @sethvargo in
#304
* fix: release by @verbanicm in #305
* Switch to nicer quoting for YAML conditions by @sethvargo in
#306
* Remove some double-quoting in workflows by @sethvargo in
#307
* Disable caching on golangci by @sethvargo in
#308
* Update to new release process by @sethvargo in
#309
* Update deps and Go version by @sethvargo in
#311


**Full Changelog**:
v1.0.3...v1.0.4

Co-authored-by: token-minter-prod[bot] <125072751+token-minter-prod[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants