Skip to content

Commit 5572433

Browse files
committed
[skip ci] make preventing snapshots optional
1 parent 58887c6 commit 5572433

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/pre-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
targetVersion:
66
description: 'Expected Release Version'
77
required: true
8+
preventSnapshots:
9+
description: 'Prevent Snapshot Publishing'
10+
required: false
811
env:
912
GIT_USER_NAME: 'grails-build'
1013
GIT_USER_EMAIL: '[email protected]'
@@ -274,9 +277,11 @@ jobs:
274277
- name: "📥 Checkout repository"
275278
uses: actions/checkout@v4
276279
- name: "🛑 Set Prevent Snapshot Publishing Flag"
280+
if: ${{ github.event.inputs.preventSnapshots }}
277281
run: |
278282
sed -i "s/^preventSnapshotPublish.*$/preventSnapshotPublish\=true/" gradle.properties
279283
- name: "📩 Commit flag to prevent snapshot publishing"
284+
if: ${{ github.event.inputs.preventSnapshots }}
280285
run: |
281286
git config user.name "${{ env.GIT_USER_NAME }}"
282287
git config user.email "${{ env.GIT_USER_EMAIL }}"

0 commit comments

Comments
 (0)