diff --git a/.github/workflows/pr_check.yml b/.github/workflows/pr_check.yml index 24c5f6f..70e6fa4 100644 --- a/.github/workflows/pr_check.yml +++ b/.github/workflows/pr_check.yml @@ -11,10 +11,6 @@ on: pull_request: branches: ["main"] -env: - # Stub iap package if this worlflow is running from the PR from a fork - STUB_IAP: ${{ github.event.pull_request.head.repo.full_name != github.repository }} - jobs: analyze_and_test: name: Analyze & test @@ -27,12 +23,12 @@ jobs: - name: Connect private iap package uses: webfactory/ssh-agent@v0.8.0 - if: ${{ !env.STUB_IAP }} + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} with: ssh-private-key: ${{ secrets.M3_LIGHTMETER_IAP_KEY }} - name: Override iap package with stub - if: ${{ env.STUB_IAP }} + if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} run: bash ./.github/scripts/stub_iap.sh - uses: subosito/flutter-action@v2