Skip to content

Commit 380b0d8

Browse files
authored
Update gradle.yml (#13248)
1 parent ec23579 commit 380b0d8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/gradle.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
- name: Publish to Artifactory (repo.grails.org)
4848
id: publish
4949
uses: gradle/gradle-build-action@v2
50-
if: steps.build.outcome == 'success'
5150
env:
5251
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
5352
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
@@ -57,15 +56,15 @@ jobs:
5756
with:
5857
arguments: -Dorg.gradle.internal.publish.checksums.insecure=true publish
5958
- name: Extract branch name
60-
if: steps.publish.outcome == 'success'
59+
if: success()
6160
id: extract_branch
6261
run: echo "value=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
6362
- name: Create Snapshot Message for the Workflow Dispatch
64-
if: steps.publish.outcome == 'success'
63+
if: success()
6564
id: dispatch_message
6665
run: echo "value={\"message\":\"New Core Snapshot $(date) - $GITHUB_SHA\"}" >> $GITHUB_OUTPUT
6766
- name: Invoke the Java CI workflow in Grails Functional Tests
68-
if: steps.publish.outcome == 'success'
67+
if: success()
6968
uses: benc-uk/[email protected]
7069
with:
7170
workflow: Java CI

0 commit comments

Comments
 (0)