From dd1b14e8902b7a8484bf297db4c6be497c9d9d8a Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Wed, 14 May 2025 09:32:57 +0200 Subject: [PATCH] workflows/eval: prevent tag job from failing in forks --- .github/workflows/eval.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/eval.yml b/.github/workflows/eval.yml index 017a3e942eb0..ce9378e62320 100644 --- a/.github/workflows/eval.yml +++ b/.github/workflows/eval.yml @@ -209,7 +209,7 @@ jobs: run: nix-build base/ci -A requestReviews - name: Labelling pull request - if: ${{ github.event_name == 'pull_request_target' }} + if: ${{ github.event_name == 'pull_request_target' && github.repository_owner == 'NixOS' }} run: | # Get all currently set rebuild labels gh api \ @@ -244,7 +244,7 @@ jobs: NUMBER: ${{ github.event.number }} - name: Add eval summary to commit statuses - if: ${{ github.event_name == 'pull_request_target' }} + if: ${{ github.event_name == 'pull_request_target' && github.repository_owner == 'NixOS' }} run: | description=$(jq -r ' "Package: added " + (.attrdiff.added | length | tostring) + @@ -264,7 +264,7 @@ jobs: NUMBER: ${{ github.event.number }} - name: Requesting maintainer reviews - if: steps.app-token.outputs.token + if: ${{ steps.app-token.outputs.token && github.repository_owner == 'NixOS' }} run: | # maintainers.json contains GitHub IDs. Look up handles to request reviews from. # There appears to be no API to request reviews based on GitHub IDs