-
Notifications
You must be signed in to change notification settings - Fork 848
Integration tests in forks #5856
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
Merged
mpilgrem
merged 9 commits into
commercialhaskell:master
from
jsoref:integration-tests-in-forks
Sep 8, 2022
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2a477c9
Add self hosted runners guard
jsoref 2da3321
Only sign if key is available
jsoref 4bf9129
Creating a release requires write permissions
jsoref 24d0f4d
Switch to ncipollo/release-action
jsoref c86622b
Maybe this field should always be a string instead of sometimes an array
jsoref 5c9db84
move fromJSON to runs-on
jsoref 1305b24
Remove quotation marks from configuration.outputs.arm64
mpilgrem ee14c11
Try with minimal quotation marks in echo
mpilgrem ba70082
Try with single quotes around strings in echo
mpilgrem File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub workflows/actions don't have a
?:
operator, but they do have||
and&&
operators that work more or less as you'd expect them to in JavaScript.If a secret doesn't exist, or isn't accessible (because a PR is from a different repository in the fork network), then the
secrets.WHATEVER
will evaluate to''
which is treated asfalse
for conditional logic.Thus, if this is running due to a
push
in a repository (or apull_request
from the same repository) with the secret set, it'll use the secret.Otherwise, when the left side of the
||
evaluates to empty it'll use the right side of the||
, which then compares thegithub.repository_owner
which if it's running in this repository should becommercialhaskell
, making the left side of the&&
true
, which will result in it pickingarm64
. Technically if this fails, the resulting value will be"false"
(the output of the logic wasfalse
, but environment variables are coerced to strings). Since thecontains()
function calls below compare against"arm64"
, that's harmless as it won't match.