GitHub Action
Check staged
v1.0
Latest version
This action checks that the source branch of a PR has been merged into a staging branch.
staging-branch
The name of the staging branch you'd like to check. Defaults to staging
.
The check will pass if the latest commit in the PR has been merged into the staging branch.
See https://github.com/jack-lewin/demo-check-staging for a real example.
# .github/workflows/check-branch-is-staged.yml
on: pull_request
jobs:
check-branch-is-staged:
name: Check the branch is staged before it can be merged
runs-on: ubuntu-latest
steps:
- uses: jack-lewin/[email protected]
with:
staging-branch: 'dev'