From cfdba7248362679a75342928a2dc93f6b27cdfab Mon Sep 17 00:00:00 2001 From: zimbatm Date: Sat, 16 Jan 2021 16:55:57 +0100 Subject: [PATCH 1/2] ci: add no-channel check --- .github/workflows/no-channel.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/no-channel.yml diff --git a/.github/workflows/no-channel.yml b/.github/workflows/no-channel.yml new file mode 100644 index 0000000000000..97165f0b761c7 --- /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 < Date: Sun, 17 Jan 2021 22:57:51 +0000 Subject: [PATCH 2/2] Update .github/workflows/no-channel.yml Co-authored-by: Cole Helbling --- .github/workflows/no-channel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/no-channel.yml b/.github/workflows/no-channel.yml index 97165f0b761c7..fb9a95851f060 100644 --- a/.github/workflows/no-channel.yml +++ b/.github/workflows/no-channel.yml @@ -16,6 +16,6 @@ jobs: 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 instead. + Please target the equivalent release-* branch or master instead. EOF exit 1