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

Add custom acceptable job run conclusions #204

Merged
merged 16 commits into from
Nov 1, 2023

Conversation

CasperWA
Copy link
Owner

@CasperWA CasperWA commented Oct 30, 2023

Closes #149

Add acceptable_conclusions as an action input parameter.
It is a comma-separated list of acceptable conclusions for all status checks.

Update the CI jobs to test the parameter.

Should also close #153

Add `acceptable_conclusions` as an action input parameter.
It is a comma-separated list of acceptable conclusions for _all_ status
checks.
Missing values in the 'acceptable_conclusions' inputs.
Ensure parsed acceptable conclusions is a list of unique, valid
conclusions.
Also, use trap to do cleanup
A boolean input to determine whether or not to immediately fail if a
status check fails or wait for all checks to finish before failing.

Miscellaneous:
- Add acceptable_conclusions to path CI job.
- Remove debug from path CI job.
- Remove default value for --acceptable-conclusion push-action option.
Always parse acceptable_conclusions input.
Move it into the block that gets executed if the `wait_for_checks`
action was given.
@CasperWA CasperWA marked this pull request as ready for review October 31, 2023 14:26
This is to test `--fail-fast` testing.
To ensure fail_fast actually works as intended, one needs to manually
check the output in the CI job to see if it truly works and doesn't
ignore the option.

In order to automate this, the best way I see is to store everything
reported to stderr as an action output - but that seems like overkill
just to be able to do testing?
@CasperWA CasperWA merged commit e24d54e into main Nov 1, 2023
11 checks passed
@CasperWA CasperWA deleted the cwa/close-149-state-of-checks branch November 1, 2023 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error logged when check is skipped State of checks
1 participant