Multiple Project updates #1093
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Java CI" | |
| on: | |
| push: | |
| branches: | |
| - '[7-9]+.[0-9]+.x' | |
| pull_request: | |
| branches: | |
| - '[7-9]+.[0-9]+.x' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| packages: read | |
| steps: | |
| - name: "π₯ Checkout the repository" | |
| uses: actions/checkout@v4 | |
| - name: "βοΈ Setup JDK" | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'liberica' | |
| java-version: '17' | |
| - name: "π Setup Gradle" | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }} | |
| - name: "π¨ Run Build" | |
| id: build | |
| env: | |
| GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
| run: ./gradlew build --continue | |
| publish: | |
| if: github.event_name == 'push' | |
| needs: build | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| packages: read | |
| steps: | |
| - name: "π₯ Checkout the repository" | |
| uses: actions/checkout@v4 | |
| - name: "βοΈ Setup JDK" | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'liberica' | |
| java-version: '17' | |
| - name: "π Setup Gradle" | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }} | |
| - name: "π€ Publish Snapshot to repo.grails.org" | |
| env: | |
| GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
| ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} | |
| ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | |
| run: ./gradlew --no-build-cache publish | |
| trigger-build-gorm-impls: | |
| if: github.event_name == 'push' | |
| needs: [build, publish] | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: "π Store the target branch" | |
| id: extract_branch | |
| run: | | |
| echo "π Determine Target Branch" | |
| TARGET_BRANCH=${GITHUB_REF#refs/heads/} | |
| echo $TARGET_BRANCH | |
| echo "value=${TARGET_BRANCH}" >> $GITHUB_OUTPUT | |
| - name: "π Create Snapshot Message for the Workflow Dispatch" | |
| id: dispatch_message | |
| run: echo "value={\"message\":\"New Data Mapping Snapshots $(date) - $GITHUB_SHA\"}" >> $GITHUB_OUTPUT | |
| - name: "π‘ Invoke the Java CI workflow in GORM Hibernate5" | |
| uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 (Use commit sha as this is a 3rd party action) | |
| with: | |
| workflow: Java CI | |
| repo: grails/gorm-hibernate5 | |
| ref: ${{ steps.extract_branch.outputs.value }} | |
| token: ${{ secrets.GH_TOKEN }} | |
| - name: "π‘ Invoke the Java CI workflow in GORM Hibernate6" | |
| uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 (Use commit sha as this is a 3rd party action) | |
| with: | |
| workflow: Java CI | |
| repo: grails/gorm-hibernate6 | |
| ref: ${{ steps.extract_branch.outputs.value }} | |
| token: ${{ secrets.GH_TOKEN }} | |
| - name: "π‘ Invoke the Java CI workflow in GORM MongoDB" | |
| uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 (Use commit sha as this is a 3rd party action) | |
| with: | |
| workflow: Java CI | |
| repo: grails/gorm-mongodb | |
| ref: ${{ steps.extract_branch.outputs.value }} | |
| token: ${{ secrets.GH_TOKEN }} | |
| inputs: ${{ steps.dispatch_message.outputs.value }} | |
| - name: "π‘ Invoke the Java CI workflow in GORM Neo4j" | |
| uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 (Use commit sha as this is a 3rd party action) | |
| with: | |
| workflow: Java CI | |
| repo: grails/gorm-neo4j | |
| ref: ${{ steps.extract_branch.outputs.value }} | |
| token: ${{ secrets.GH_TOKEN }} |