From 64044f38af2309e23290f289b07fd5500c22bf65 Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Tue, 17 Sep 2024 13:13:56 +0200 Subject: [PATCH] Skip notarization on a fork https://github.com/orgs/community/discussions/25217#discussioncomment-3246904 --- .github/workflows/BuildPR.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/BuildPR.yml b/.github/workflows/BuildPR.yml index 3bcde51a..c5b1e0de 100644 --- a/.github/workflows/BuildPR.yml +++ b/.github/workflows/BuildPR.yml @@ -40,6 +40,7 @@ jobs: - name: Build project run: scripts/darwin/build.sh - name: Codesign app bundle + if: "! github.event.pull_request.head.repo.fork " # not running on a fork # Extract the secrets we defined earlier as environment variables env: MACOS_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} @@ -76,6 +77,7 @@ jobs: /usr/bin/codesign --timestamp --options=runtime -s "$MACOS_CERTIFICATE_NAME" -f -v /Users/runner/work/dlt-viewer/dlt-viewer/build/install/DLTViewer.app/Contents/MacOS/dlt-viewer /usr/bin/codesign --timestamp --options=runtime -s "$MACOS_CERTIFICATE_NAME" -f -v /Users/runner/work/dlt-viewer/dlt-viewer/build/install/DLTViewer.app - name: Notarize app bundle + if: "! github.event.pull_request.head.repo.fork " # not running on a fork env: PROD_MACOS_NOTARIZATION_APPLE_ID: ${{ secrets.APPLE_ID }} PROD_MACOS_NOTARIZATION_TEAM_ID: ${{ secrets.TEAM_ID }}