Skip to content

A Github action to deny not updated branch from running a workflow

License

Notifications You must be signed in to change notification settings

guyarb/deny-not-updated-branch

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

Repository files navigation

build-test

deny-not-updated-branch

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.

How to use

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]

Development of this action

  1. Fork this repo.
  2. Create a branch with your feature/bugfix.
  3. Open a PR to me.

Issues

Please open issues for any bug or suggestion you have.

About

A Github action to deny not updated branch from running a workflow

Resources

License

Stars

Watchers

Forks

Packages

No packages published