diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7c44f2b95a56..ac56324658f4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -40,7 +40,7 @@ jobs: runner: ubuntu-latest deploy: - if: github.repository == 'oracle/coherence' && (github.ref_name == 'main' || startsWith(github.ref_name, 'v1') || startsWith(github.ref_name, 'v2') || startsWith(github.ref_name, 'v3')) + if: GitHub.run_attempt == 1 && github.repository == 'oracle/coherence' && (github.ref_name == 'main' || startsWith(github.ref_name, 'v1') || startsWith(github.ref_name, 'v2') || startsWith(github.ref_name, 'v3')) name: Deploy Snapshot uses: ./.github/workflows/deploy-snapshots.yaml with: diff --git a/.github/workflows/deploy-snapshots.yaml b/.github/workflows/deploy-snapshots.yaml index 81763f0776b2..e9c10393e875 100644 --- a/.github/workflows/deploy-snapshots.yaml +++ b/.github/workflows/deploy-snapshots.yaml @@ -28,6 +28,7 @@ env: jobs: build: + if: github.run_attempt == 1 runs-on: ${{ inputs.runner }} steps: