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/check-staged@v1.0
with:
staging-branch: 'dev'