summary refs log tree commit diff
path: root/.github/workflows/no-channel.yml
blob: fb9a95851f060d8cccb6eaaff45617e18bf462ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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