Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 710 Bytes

README.md

File metadata and controls

35 lines (21 loc) · 710 Bytes

check-staged

This action checks that the source branch of a PR has been merged into a staging branch.

Inputs

  • staging-branch

The name of the staging branch you'd like to check. Defaults to staging.

Outputs

The check will pass if the latest commit in the PR has been merged into the staging branch.

Example usage

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'