Unverified Commit dd1b14e8 authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files

workflows/eval: prevent tag job from failing in forks

parent 3039dc20
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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