From e446912c0c15e9f01b69b899c27459f81a2829eb Mon Sep 17 00:00:00 2001 From: Mattias Reichel Date: Mon, 27 Jan 2025 09:02:46 +0100 Subject: [PATCH 1/3] ci: publish snapshots to `libs-snapshots-local` The GitHub organization secret `MAVEN_PUBLISH_URL` is currently set to https://repo.grails.org/grails/plugins3-snapshot-local. However, these projects have historically been published to https://repo.grails.org/grails/libs-snapshots-local. This commit explicitly sets the snapshot repository URL to ensure consistency with previous publishing behavior. --- .github/workflows/gradle.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index aebdfa982cf..0937f5fc988 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -58,7 +58,8 @@ jobs: GRADLE_PUBLISH_RELEASE: 'false' MAVEN_PUBLISH_USERNAME: ${{ secrets.MAVEN_PUBLISH_USERNAME }} MAVEN_PUBLISH_PASSWORD: ${{ secrets.MAVEN_PUBLISH_PASSWORD }} - MAVEN_PUBLISH_URL: ${{ secrets.MAVEN_PUBLISH_SNAPSHOT_URL }} + # NOTE: secrets.MAVEN_PUBLISH_URL == https://repo.grails.org/grails/plugins3-snapshot-local + MAVEN_PUBLISH_URL: https://repo.grails.org/grails/libs-snapshots-local run: ./gradlew --no-build-cache publish trigger-build-gorm-impls: if: github.event_name == 'push' From 080d381f460d2d6792e2213bb78ea5190b71b067 Mon Sep 17 00:00:00 2001 From: Mattias Reichel Date: Mon, 27 Jan 2025 09:17:15 +0100 Subject: [PATCH 2/3] ci: allow GORM implementation build triggers to continue on error The `hibernate6` repository currently does not have GitHub workflows enabled, causing the job to fail and preventing subsequent steps from running. This commit configures `continue-on-error: true` at the job level to ensure the workflow does not fail if a trigger fails, and at the step level to ensure subsequent steps are still triggered. --- .github/workflows/gradle.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 0937f5fc988..c05128b7345 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -65,6 +65,7 @@ jobs: if: github.event_name == 'push' needs: [build, publish] runs-on: ubuntu-24.04 + continue-on-error: true steps: - name: "📝 Store the target branch" id: extract_branch @@ -78,12 +79,14 @@ jobs: 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) + continue-on-error: true 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" + continue-on-error: true uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 (Use commit sha as this is a 3rd party action) with: workflow: Java CI @@ -91,6 +94,7 @@ jobs: ref: ${{ steps.extract_branch.outputs.value }} token: ${{ secrets.GH_TOKEN }} - name: "📡 Invoke the Java CI workflow in GORM MongoDB" + continue-on-error: true uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 (Use commit sha as this is a 3rd party action) with: workflow: Java CI @@ -99,6 +103,7 @@ jobs: token: ${{ secrets.GH_TOKEN }} inputs: ${{ steps.dispatch_message.outputs.value }} - name: "📡 Invoke the Java CI workflow in GORM Neo4j" + continue-on-error: true uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 (Use commit sha as this is a 3rd party action) with: workflow: Java CI From 14124297338ea3ad669f2a94f678367dfedabf11 Mon Sep 17 00:00:00 2001 From: Mattias Reichel Date: Mon, 27 Jan 2025 09:19:31 +0100 Subject: [PATCH 3/3] ci: add job names in Java CI workflow Assign proper job names for better output in the GitHub Actions interface. --- .github/workflows/gradle.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index c05128b7345..75d344ac871 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -8,6 +8,7 @@ on: - '[7-9]+.[0-9]+.x' jobs: build: + name: "Build Project" runs-on: ubuntu-24.04 permissions: contents: read @@ -35,6 +36,7 @@ jobs: run: ./gradlew build --continue publish: if: github.event_name == 'push' + name: "Publish Snapshot" needs: build runs-on: ubuntu-24.04 permissions: @@ -63,6 +65,7 @@ jobs: run: ./gradlew --no-build-cache publish trigger-build-gorm-impls: if: github.event_name == 'push' + name: "Trigger Build in GORM Implementations" needs: [build, publish] runs-on: ubuntu-24.04 continue-on-error: true