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