mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
depend on step conclusion
This commit is contained in:
parent
4493685903
commit
8f491de27b
1 changed files with 6 additions and 4 deletions
8
.github/workflows/pr_check.yml
vendored
8
.github/workflows/pr_check.yml
vendored
|
@ -23,12 +23,14 @@ 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: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
|
id: fetch-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: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
|
id: override-iap
|
||||||
|
if: steps.fetch-iap.conclusion != 'success'
|
||||||
run: bash ./.github/scripts/stub_iap.sh
|
run: bash ./.github/scripts/stub_iap.sh
|
||||||
|
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
|
@ -49,7 +51,7 @@ jobs:
|
||||||
run: flutter test
|
run: flutter test
|
||||||
|
|
||||||
- name: Analyze project source with stub
|
- name: Analyze project source with stub
|
||||||
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
|
if: steps.override-iap.conclusion != 'success'
|
||||||
run: |
|
run: |
|
||||||
bash ./.github/scripts/stub_iap.sh
|
bash ./.github/scripts/stub_iap.sh
|
||||||
flutter pub get
|
flutter pub get
|
||||||
|
|
Loading…
Reference in a new issue