From 8f491de27b7ab0e76fe7e7711218cf65c4cef03e Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Wed, 20 Sep 2023 11:47:40 +0200 Subject: [PATCH] depend on step conclusion --- .github/workflows/pr_check.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr_check.yml b/.github/workflows/pr_check.yml index ac420da..8b4c961 100644 --- a/.github/workflows/pr_check.yml +++ b/.github/workflows/pr_check.yml @@ -23,12 +23,14 @@ jobs: - name: Connect private iap package 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: ssh-private-key: ${{ secrets.M3_LIGHTMETER_IAP_KEY }} - 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 - uses: subosito/flutter-action@v2 @@ -49,8 +51,8 @@ jobs: run: flutter test - name: Analyze project source with stub - if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} + if: steps.override-iap.conclusion != 'success' run: | bash ./.github/scripts/stub_iap.sh flutter pub get - flutter analyze lib --fatal-infos + flutter analyze lib --fatal-infos \ No newline at end of file