This commit is contained in:
Vadim 2023-09-02 12:29:38 +02:00
parent 0b9b72011e
commit 7b84225f65

View file

@ -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