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: pull_request:
branches: ["main"] 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: jobs:
analyze_and_test: analyze_and_test:
name: Analyze & test name: Analyze & test
@ -27,12 +23,12 @@ jobs:
- name: Connect private iap package - name: Connect private iap package
uses: webfactory/ssh-agent@v0.8.0 uses: webfactory/ssh-agent@v0.8.0
if: ${{ !env.STUB_IAP }} if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
with: with:
ssh-private-key: ${{ secrets.M3_LIGHTMETER_IAP_KEY }} ssh-private-key: ${{ secrets.M3_LIGHTMETER_IAP_KEY }}
- name: Override iap package with stub - 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 run: bash ./.github/scripts/stub_iap.sh
- uses: subosito/flutter-action@v2 - uses: subosito/flutter-action@v2