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