-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Update github action exit codes #17002
Conversation
Looks like |
e630cd2
to
45890eb
Compare
|
||
action=$(jq -r '.action' $GITHUB_EVENT_PATH) | ||
|
||
if [ "$action" != 'closed' ]; then |
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.
This should be 'opened'
. The idea is that we assign any fixed issues to the author of a PR when that PR is opened.
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.
Yeah, that was a typo 😓
* Update github action exit codes * Remove Filter Opened from github actions
* Update github action exit codes * Remove Filter Opened from github actions
Description
Github actions used to support an exit code of
78
to indicate that an action is neutral (has no effect, but any subsequent actions shouldn't run):https://developer.github.com/actions/creating-github-actions/accessing-the-runtime-environment/#exit-codes-and-statuses
It looks like neutral exit code have been dropped from the new version of actions, they need to return
0
to indicate success, or will show as a big red ❌against PRs:https://help.github.com/en/articles/virtual-environments-for-github-actions#exit-codes-and-statuses
How has this been tested?
This PR should hopefully have a green check for each action ✅
Types of changes
Task
Checklist: