2021-07-21 08:22:37 +02:00
|
|
|
name: "No channel PR"
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'nixos-**'
|
|
|
|
- 'nixpkgs-**'
|
|
|
|
|
2022-07-04 03:09:50 +02:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-07-21 08:22:37 +02:00
|
|
|
jobs:
|
|
|
|
fail:
|
2022-07-04 03:09:50 +02:00
|
|
|
permissions:
|
|
|
|
contents: none
|
2021-07-21 08:22:37 +02:00
|
|
|
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
|