diff --git a/.github/workflows/primary.yml b/.github/workflows/primary.yml index fe9508b..6f651d8 100644 --- a/.github/workflows/primary.yml +++ b/.github/workflows/primary.yml @@ -27,14 +27,16 @@ jobs: name: Publish to snapshot repo if master branch runs-on: ubuntu-latest needs: test - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' && always() steps: - uses: technote-space/workflow-conclusion-action@v2 - uses: actions/checkout@v2 + if: env.WORKFLOW_CONCLUSION == 'success' - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: java-version: 1.8 + if: env.WORKFLOW_CONCLUSION == 'success' - name: Import GPG key id: import_gpg uses: crazy-max/ghaction-import-gpg@v3