check PR number

This commit is contained in:
Vadim 2023-09-20 11:53:30 +02:00
parent 8f491de27b
commit 973e8d0426

View file

@ -17,6 +17,9 @@ jobs:
runs-on: macos-11
timeout-minutes: 5
steps:
- uses: 8BitJonny/gh-get-current-pr@2.2.0
id: PR
- uses: actions/checkout@v3
with:
submodules: recursive
@ -24,7 +27,7 @@ jobs:
- name: Connect private iap package
uses: webfactory/ssh-agent@v0.8.0
id: fetch-iap
if: github.event.pull_request.head.repo.full_name == github.repository
if: steps.PR.outputs.number == 'null' || github.event.pull_request.head.repo.full_name == github.repository
with:
ssh-private-key: ${{ secrets.M3_LIGHTMETER_IAP_KEY }}