Unverified Commit 40963bf4 authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files

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.
parent 76084a6a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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: