Skip to content

Commit d9e45fb

Browse files
authored
Merge pull request #1406 from grails/triggerWorkflowDispatch
Update Java CI Workflow
2 parents 588042d + ea49773 commit d9e45fb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,20 @@ jobs:
5353
run: |
5454
echo $SECRING_FILE | base64 -d > secring.gpg
5555
./gradlew -Dorg.gradle.internal.publish.checksums.insecure=true -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="secring.gpg" publish
56+
- name: Extract branch name
57+
if: success() && github.event_name == 'push' && matrix.java == '8'
58+
id: extract_branch
59+
run: echo ::set-output name=value::${GITHUB_REF:11}
60+
- name: Create Snapshot Message for the Workflow Dispatch
61+
if: success() && github.event_name == 'push' && matrix.java == '8'
62+
id: dispatch_message
63+
run: echo ::set-output name=value::{\"message\":\"New Core Snapshot $(date) - $GITHUB_SHA\"}
64+
- name: Invoke the Java CI workflow in GORM Hibernate5
65+
if: success() && github.event_name == 'push' && matrix.java == '8'
66+
uses: benc-uk/[email protected]
67+
with:
68+
workflow: Java CI
69+
repo: grails/gorm-hibernate5
70+
ref: master
71+
token: ${{ secrets.GH_TOKEN }}
72+
inputs: ${{ steps.dispatch_message.outputs.value }}

0 commit comments

Comments
 (0)