Deny not updated branch
ActionsA github action to fail a PR workflow if the branch is not up to date with the traget branch
v1.1.0
LatestBy guyarb
A github action fails a workflow if the branch is not up to date with the target branch.
You must add a branch protection rule of Require branches to be up to date before merging
.
Add to your workflow the following contents:
name: workflow
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
jobs:
full_ci:
runs-on: ubuntu-18.04
steps:
- uses: guyarb/[email protected]
- Fork this repo.
- Create a branch with your feature/bugfix.
- Open a PR to me.
Please open issues for any bug or suggestion you have.
Deny not updated branch is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.