mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 02:10:27 +08:00
We intend to use the edited event to react to base branch changes - but
before this change, we also ran those jobs on simple edits like title or
description.
While this works for some of the quicker jobs, it will not be
sustainable for all evaluation-related jobs. But evaluation needs to be
re-triggered on a base branch change as well, thus this change.
(cherry picked from commit 9b01e09a35)
27 lines
663 B
YAML
27 lines
663 B
YAML
name: "No channel PR"
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/no-channel.yml
|
|
pull_request_target:
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
fail:
|
|
if: |
|
|
startsWith(github.event.pull_request.base.ref, 'nixos-') ||
|
|
startsWith(github.event.pull_request.base.ref, 'nixpkgs-')
|
|
name: "This PR is targeting a channel branch"
|
|
runs-on: ubuntu-24.04-arm
|
|
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
|