mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 23:10:40 +00:00
stub
This commit is contained in:
parent
0b9b72011e
commit
7b84225f65
1 changed files with 2 additions and 6 deletions
8
.github/workflows/pr_check.yml
vendored
8
.github/workflows/pr_check.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue