From 973e8d04260b175fa930a81b12a4fdfe60e3ea45 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Wed, 20 Sep 2023 11:53:30 +0200 Subject: [PATCH] check PR number --- .github/workflows/pr_check.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_check.yml b/.github/workflows/pr_check.yml index 8b4c961..caf7a97 100644 --- a/.github/workflows/pr_check.yml +++ b/.github/workflows/pr_check.yml @@ -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 }}