diff options
author | Jonas Chevalier <zimbatm@zimbatm.com> | 2021-07-21 08:22:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 08:22:37 +0200 |
commit | b8297c00c97f91c163b004c686948cfb0eb80d11 (patch) | |
tree | 0cbe6f22a75d406581198f5136f32c825cef5c57 | |
parent | 7629209756e50d45e0b69e7102f548071937a97c (diff) |
ci: add no-channel check (#109543)
* ci: add no-channel check
* Update .github/workflows/no-channel.yml
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
-rw-r--r-- | .github/workflows/no-channel.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/no-channel.yml b/.github/workflows/no-channel.yml new file mode 100644 index 000000000000..fb9a95851f06 --- /dev/null +++ b/.github/workflows/no-channel.yml @@ -0,0 +1,21 @@ +name: "No channel PR" + +on: + pull_request: + branches: + - 'nixos-**' + - 'nixpkgs-**' + +jobs: + fail: + name: "This PR is is targeting a channel branch" + runs-on: ubuntu-latest + steps: + - run: | + cat <<EOF + The nixos-* and nixpkgs-* branches are pushed to by the channel + release script and should not be merged into directly. + + Please target the equivalent release-* branch or master instead. + EOF + exit 1 |