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:
6
.github/workflows/no-channel.yml
vendored
6
.github/workflows/no-channel.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user