Skip to content

Commit 0ed5b47

Browse files
committed
Remove gpg steps for PR from fork
1 parent ccd37dc commit 0ed5b47

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/pr_scala_3.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ jobs:
2828
run: sbt test
2929

3030
- name: Import GPG key
31+
if: github.event.pull_request.head.repo.fork == false
3132
id: import_gpg
3233
uses: crazy-max/ghaction-import-gpg@v3
3334
with:
3435
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
3536
passphrase: ${{ secrets.PGP_PASSPHRASE }}
3637

3738
- name: publish local
39+
if: ${{ secrets.GPG_PRIVATE_KEY != '' }}
3840
run: sbt publishLocalSigned

0 commit comments

Comments
 (0)