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

Update github action exit codes #17002

Merged
merged 2 commits into from
Aug 13, 2019
Merged

Update github action exit codes #17002

merged 2 commits into from
Aug 13, 2019

Conversation

talldan
Copy link
Contributor

@talldan talldan commented Aug 12, 2019

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:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.

@talldan talldan added [Type] Task Issues or PRs that have been broken down into an individual action to take [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. labels Aug 12, 2019
@talldan talldan self-assigned this Aug 12, 2019
@talldan
Copy link
Contributor Author

talldan commented Aug 12, 2019

Looks like Filter opened is still returning exit code 78.

@talldan talldan force-pushed the try/github-action-error-codes branch from e630cd2 to 45890eb Compare August 13, 2019 03:26
@talldan talldan merged commit 18b194a into master Aug 13, 2019
@talldan talldan deleted the try/github-action-error-codes branch August 13, 2019 04:16

action=$(jq -r '.action' $GITHUB_EVENT_PATH)

if [ "$action" != 'closed' ]; then
Copy link
Member

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.

Copy link
Contributor Author

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 😓

gziolo pushed a commit that referenced this pull request Aug 29, 2019
* Update github action exit codes

* Remove Filter Opened from github actions
gziolo pushed a commit that referenced this pull request Aug 29, 2019
* Update github action exit codes

* Remove Filter Opened from github actions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. [Type] Task Issues or PRs that have been broken down into an individual action to take
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants