Skip to content

GitHub Action to ensure a branch is staged before merging the PR

Notifications You must be signed in to change notification settings

jack-lewin/check-staged

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

GitHub Action to ensure a branch is staged before merging the PR

Resources

Stars

Watchers

Forks

Packages

No packages published