Add GitHub Action for br build watch - #20
Merged
Merged
Conversation
build watch returned right after emitting JSON, so --exit-status was ignored and the CI gate passed on failed builds. Honor it in the JSON path (JSON to stdout, exit-1 error to stderr). Add retry with backoff to the action's asset download to survive the release-publish window where Linux tarballs upload after the release is created.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
.github/actions/check/action.ymlthat gates a workflow on a Bitrise buildbrrelease binary (Linux amd64/arm64, macOS universal);versiondefaults to the latest release tag (no floatinglatest)br build watch <n> --exit-status --json status,buildNumber,statusCode,failedStepsbuild-numberis required — resolving the latest build by branch is unreliable and can pass on an unrelated buildappinput safely falls through to.br.yml/ git remote (resolveAppSlugtreats emptyBITRISE_APP_SLUGas unset)Closes #15
Test plan
v0.2.0, then smoke-test the action against a real build in a downstream workflowNotes
actionlint does not lint composite action files (only
.github/workflows/), so the embedded bash was verified with shellcheck instead.