-
Notifications
You must be signed in to change notification settings - Fork 59.6k
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
Document how to use secrets with if:
conditionals in GitHub Actions workflows
#12722
Merged
Commits on Mar 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for fd1b62e - Browse repository at this point
Copy the full SHA fd1b62eView commit details -
🔒 Compare secrets with empty strings in
if:
#6861 #12722 (comment) Rather than referencing two secrets: 1. `${{ secrets.SECRET_IS_SET }}` 2. `${{ secrets.SECRET_IS_NOT_SET }}`) This commit will update the related section of the docs to reference a single secret (`${{ secrets.SECRET_IS_SET }}`), and will update the `if:` conditionals to compare with empty strings as suggested.
Configuration menu - View commit details
-
Copy full SHA for 0ea4ebd - Browse repository at this point
Copy the full SHA 0ea4ebdView commit details -
Configuration menu - View commit details
-
Copy full SHA for e8b1ecf - Browse repository at this point
Copy the full SHA e8b1ecfView commit details -
🔒 Match variable and secret names in examples
#6861 #12722 (comment) This PR adds an example of how to use secrets with `if:` conditionals. The reviewer suggested comparing variable values with empty strings to make the `if:` conditionals clearer. Commit cecdf00 updated the secret names accordingly, but the names of the secret and environment variable may still have been confusing. This commit will update the secret and environment variable names to match the cross-referenced example on the "Encrypted secrets" page.
Configuration menu - View commit details
-
Copy full SHA for f1b6359 - Browse repository at this point
Copy the full SHA f1b6359View commit details
Commits on Mar 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 43ef716 - Browse repository at this point
Copy the full SHA 43ef716View commit details -
Configuration menu - View commit details
-
Copy full SHA for da74eb7 - Browse repository at this point
Copy the full SHA da74eb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 157e078 - Browse repository at this point
Copy the full SHA 157e078View commit details
Commits on Mar 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 97c6fb9 - Browse repository at this point
Copy the full SHA 97c6fb9View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.