summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authorJonas Chevalier <zimbatm@zimbatm.com>2021-07-21 08:22:37 +0200
committerGitHub <noreply@github.com>2021-07-21 08:22:37 +0200
commitb8297c00c97f91c163b004c686948cfb0eb80d11 (patch)
tree0cbe6f22a75d406581198f5136f32c825cef5c57 /.github
parent7629209756e50d45e0b69e7102f548071937a97c (diff)
downloadnixpkgs-b8297c00c97f91c163b004c686948cfb0eb80d11.tar
nixpkgs-b8297c00c97f91c163b004c686948cfb0eb80d11.tar.gz
nixpkgs-b8297c00c97f91c163b004c686948cfb0eb80d11.tar.bz2
nixpkgs-b8297c00c97f91c163b004c686948cfb0eb80d11.tar.lz
nixpkgs-b8297c00c97f91c163b004c686948cfb0eb80d11.tar.xz
nixpkgs-b8297c00c97f91c163b004c686948cfb0eb80d11.tar.zst
nixpkgs-b8297c00c97f91c163b004c686948cfb0eb80d11.zip
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>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/no-channel.yml21
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 00000000000..fb9a95851f0
--- /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