From 59f14509433096469c0dcb102def180fc2bd8cab 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 --- .github/workflows/BuildPR.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/BuildPR.yml b/.github/workflows/BuildPR.yml index 3bcde51a..4af2e805 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.full_name != 'org/repo' }} # 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.full_name != 'org/repo' }} # not running on a fork env: PROD_MACOS_NOTARIZATION_APPLE_ID: ${{ secrets.APPLE_ID }} PROD_MACOS_NOTARIZATION_TEAM_ID: ${{ secrets.TEAM_ID }}