From 3ff50a219b1a218a1bbaf601ffde2a5c53bf6db3 Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Sun, 29 Dec 2024 21:55:11 +0530 Subject: [PATCH] actions/no-channel-pr: re run when base branch is updated Additionally, no permissions are needed so set it to an empty set Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com> --- .github/workflows/no-channel.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/no-channel.yml b/.github/workflows/no-channel.yml index 90c38f22c007b..623a011c6e730 100644 --- a/.github/workflows/no-channel.yml +++ b/.github/workflows/no-channel.yml @@ -1,18 +1,17 @@ name: "No channel PR" on: - pull_request: + 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: - contents: read +permissions: {} jobs: fail: - permissions: - contents: none name: "This PR is is targeting a channel branch" runs-on: ubuntu-latest steps: