chore(deps): update github/codeql-action digest to 1b1aada #105
This file contains 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: Main Build | |
on: | |
push: | |
branches: | |
- main | |
env: | |
# renovate: datasource=java-version depName=java-jdk | |
JAVA_VERSION: '22.0.0+36' | |
# renovate: datasource=maven depName=org.apache.maven:maven | |
MAVEN_VERSION: '3.9.6' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Set up Maven | |
uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f # v4.5 | |
with: | |
maven-version: ${{ env.MAVEN_VERSION }} | |
- name: Set up Java | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Build with Maven | |
run: mvn --batch-mode --no-transfer-progress --update-snapshots verify | |
- name: Extract Maven project version | |
run: echo ::set-output name=version::$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) | |
id: project | |
- name: Deploy Snapshot to GitHub Packages | |
if: ${{ endsWith(steps.project.outputs.version, '-SNAPSHOT') }} | |
run: mvn --batch-mode --no-transfer-progress -Dmaven.test.skip=true -Dtree=${{ github.sha }} deploy -P github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |