deps: Bump actions/setup-java from 5.2.0 to 5.3.0 #779
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: Commit Stage | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - '.editorconfig' | |
| - '.gitattributes' | |
| - '.gitignore' | |
| - '.sdkmanrc' | |
| - '*.adoc' | |
| - '*.png' | |
| - '*.md' | |
| - '*.txt' | |
| - 'catalog-info.yaml' | |
| - 'docs/**' | |
| - '.github/ISSUE_TEMPLATE/**' | |
| - '.github/*.md' | |
| - '.github/*.yml' | |
| - '.github/*.yaml' | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: commit-stage-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Check out source code | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Reclaim disk space | |
| shell: bash | |
| run: .github/scripts/reclaim-disk-space.sh | |
| - name: Set up Java | |
| uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| - name: Validate Gradle Wrapper | |
| uses: gradle/actions/wrapper-validation@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0 | |
| - name: Compile and test | |
| run: ./gradlew build -Dorg.gradle.parallel=false | |
| - name: Generate SBOMs | |
| run: ./gradlew cyclonedxBom | |
| release: | |
| name: Release | |
| runs-on: ubuntu-24.04 | |
| needs: build | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| timeout-minutes: 60 | |
| permissions: | |
| contents: write | |
| discussions: write | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - name: Check out source code | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Set up Java | |
| uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0 | |
| - name: Stage artifacts to local directory | |
| run: ./gradlew publish | |
| - name: Define project properties | |
| id: project-props | |
| run: | | |
| PROPS=$(./gradlew -q properties --no-daemon) | |
| GROUP=$(echo "$PROPS" | grep '^group:' | awk '{print $2}') | |
| VERSION=$(echo "$PROPS" | grep '^version:' | awk '{print $2}') | |
| { | |
| echo "group<<EOF" | |
| echo "$GROUP" | |
| echo "EOF" | |
| echo "version<<EOF" | |
| echo "$VERSION" | |
| echo "EOF" | |
| } >> "$GITHUB_OUTPUT" | |
| echo "group: $GROUP" | |
| echo "version: $VERSION" | |
| - name: Release | |
| uses: jreleaser/release-action@90ac653bb9c79d11179e65d81499f3f34527dcd5 # v2.5.0 | |
| with: | |
| arguments: full-release | |
| env: | |
| JRELEASER_BLUESKY_HANDLE: ${{ secrets.JRELEASER_BLUESKY_HANDLE }} | |
| JRELEASER_BLUESKY_HOST: ${{ secrets.JRELEASER_BLUESKY_HOST }} | |
| JRELEASER_BLUESKY_PASSWORD: ${{ secrets.JRELEASER_BLUESKY_PASSWORD }} | |
| JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }} | |
| JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }} | |
| JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }} | |
| JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
| JRELEASER_MAVENCENTRAL_TOKEN: ${{ secrets.SONATYPE_TOKEN }} | |
| JRELEASER_NEXUS2_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
| JRELEASER_NEXUS2_TOKEN: ${{ secrets.SONATYPE_TOKEN }} | |
| JRELEASER_PROJECT_JAVA_GROUP_ID: ${{ steps.project-props.outputs.group }} | |
| JRELEASER_PROJECT_VERSION: ${{ steps.project-props.outputs.version }} | |
| - name: Upload JReleaser output | |
| if: always() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| retention-days: 1 | |
| name: jreleaser-output | |
| path: | | |
| out/jreleaser/trace.log | |
| out/jreleaser/output.properties | |
| - name: Trigger documentation update | |
| env: | |
| GH_TOKEN: ${{ secrets.DISPATCH_TOKEN }} | |
| run: | | |
| set -euo pipefail | |
| gh api \ | |
| --method POST \ | |
| -H "Accept: application/vnd.github+json" \ | |
| /repos/arconia-io/arconia-docs/dispatches \ | |
| -f event_type='docs-update' |