Skip to content

Commit cd44e67

Browse files
authored
Skip notarization for PRs from forks (#162)
* Skip notarization for bot PRs * Add workflow_dispatch
1 parent 63289c5 commit cd44e67

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/build-macos.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches: [main]
66
pull_request:
7+
workflow_dispatch:
78
workflow_call:
89

910
jobs:
@@ -68,6 +69,7 @@ jobs:
6869
echo "APP_VERSION=$VERSION" >> "$GITHUB_ENV"
6970
7071
- name: Import Developer ID certificate
72+
if: github.actor != 'dependabot[bot]'
7173
env:
7274
MACOS_CERT_P12_BASE64: ${{ secrets.MACOS_CERT_P12_BASE64 }}
7375
MACOS_CERT_PASSWORD: ${{ secrets.MACOS_CERT_PASSWORD }}
@@ -83,9 +85,11 @@ jobs:
8385
run: $(brew --prefix qt)/bin/macdeployqt build/SigViewer.app
8486

8587
- name: Sign .app bundle
88+
if: github.actor != 'dependabot[bot]'
8689
run: 'codesign --deep --force --options runtime --sign "Developer ID Application: CLEMENS BRUNNER (9UC2D22DW3)" build/SigViewer.app'
8790

8891
- name: Notarize .app bundle
92+
if: github.actor != 'dependabot[bot]'
8993
env:
9094
AC_USERNAME: ${{ secrets.AC_USERNAME }}
9195
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
@@ -98,6 +102,7 @@ jobs:
98102
--wait
99103
100104
- name: Staple .app bundle
105+
if: github.actor != 'dependabot[bot]'
101106
run: xcrun stapler staple build/SigViewer.app
102107

103108
- name: Create DMG

0 commit comments

Comments
 (0)