workflows/no-channel: run again when base changed

Because of the branches filter, the job would **not** re-run when only
the base-branch was changed, thus leaving the contributor with a failed
check.

With this change, the job should be triggered and then skipped in this
case, so the check in the list should be replaced with a skip.

Note, this also means that this step will show up in every PR as
skipped, even when it was never failed before.
This commit is contained in:
Wolfgang Walther
2025-05-05 21:49:52 +02:00
parent 76084a6a33
commit 40963bf4c2

View File

@@ -4,14 +4,14 @@ on:
pull_request_target:
# Re-run should be triggered when the base branch is updated, instead of silently failing
types: [opened, synchronize, reopened, edited]
branches:
- 'nixos-**'
- 'nixpkgs-**'
permissions: {}
jobs:
fail:
if: |
startsWith(github.event.pull_request.base.ref, 'nixos-') ||
startsWith(github.event.pull_request.base.ref, 'nixpkgs-')
name: "This PR is is targeting a channel branch"
runs-on: ubuntu-24.04
steps: