Skip to content

Commit

Permalink
COH-31609 Create a proper build pipeline on GitHub - do not allow re-…
Browse files Browse the repository at this point in the history
…run of deploy action

(merge main -> ce/main 113601)

[git-p4: depot-paths = "//dev/coherence-ce/main/": change = 113602]
  • Loading branch information
thegridman committed Jan 17, 2025
1 parent 0d06083 commit 3150ae9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-snapshots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ env:

jobs:
build:
if: github.run_attempt == 1
runs-on: ${{ inputs.runner }}

steps:
Expand Down

0 comments on commit 3150ae9

Please sign in to comment.