From c744c53c5a3bc916ae5499c2f4e8cf393ec79fd1 Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Thu, 14 Sep 2023 15:53:22 +0200 Subject: [PATCH] chore: only run when release successful --- .github/workflows/dhis2-verify-app.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dhis2-verify-app.yml b/.github/workflows/dhis2-verify-app.yml index b592fd90c..72c88d2d3 100644 --- a/.github/workflows/dhis2-verify-app.yml +++ b/.github/workflows/dhis2-verify-app.yml @@ -120,8 +120,9 @@ jobs: report-release-failure: runs-on: ubuntu-latest - needs: lint + needs: release if: | + failure() && !cancelled() && github.ref == 'refs/heads/master' steps: @@ -155,10 +156,11 @@ jobs: report-release-success: runs-on: ubuntu-latest - needs: lint + needs: release if: | success() && - !cancelled() + !cancelled() && + github.ref == 'refs/heads/master' steps: - name: Checkout code uses: actions/checkout@master