Skip to content

Add GitHub Action for br build watch - #20

Merged
novr merged 2 commits into
mainfrom
cursor/gha-check
Jul 24, 2026
Merged

Add GitHub Action for br build watch#20
novr merged 2 commits into
mainfrom
cursor/gha-check

Conversation

@novr

@novr novr commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Composite action at .github/actions/check/action.yml that gates a workflow on a Bitrise build
  • Installs the matching br release binary (Linux amd64/arm64, macOS universal); version defaults to the latest release tag (no floating latest)
  • Runs br build watch <n> --exit-status --json status,buildNumber,statusCode,failedSteps
  • build-number is required — resolving the latest build by branch is unreliable and can pass on an unrelated build
  • Empty app input safely falls through to .br.yml / git remote (resolveAppSlug treats empty BITRISE_APP_SLUG as unset)

Closes #15

Test plan

  • shellcheck clean on both embedded scripts
  • Post-merge: tag v0.2.0, then smoke-test the action against a real build in a downstream workflow

Notes

actionlint does not lint composite action files (only .github/workflows/), so the embedded bash was verified with shellcheck instead.

novr added 2 commits July 24, 2026 09:54
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.
@novr
novr merged commit 03371c9 into main Jul 24, 2026
2 checks passed
@novr
novr deleted the cursor/gha-check branch July 24, 2026 04:13
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.

v0.2.0: GitHub Action (br build watch)

1 participant