diff --git a/.github/workflows/assemble-native.yml b/.github/workflows/assemble-native.yml index d5df67a..f2dafa9 100644 --- a/.github/workflows/assemble-native.yml +++ b/.github/workflows/assemble-native.yml @@ -6,6 +6,9 @@ on: project-version: required: true type: string + build-sha: + required: false + type: string env: gluon_version: 22.1.0.1-Final @@ -48,8 +51,11 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Checkout + - name: "Checkout ${{ github.event.inputs.build-sha }}" uses: actions/checkout@v4 + with: + ref: ${{ github.event.inputs.build-sha }} + fetch-depth: 0 - name: Cache local Maven repository uses: actions/cache@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0b77bf..33172f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Cache local Maven repository + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + - name: Version id: vars shell: bash @@ -34,6 +40,7 @@ jobs: uses: jagodevreede/sdkman-ui/.github/workflows/assemble-native.yml@main with: project-version: ${{ needs.precheck.outputs.VERSION }} + build-sha: 'main' release: needs: [ precheck, assemble ]