Skip to content

Commit

Permalink
build: Build released version not called with version
Browse files Browse the repository at this point in the history
  • Loading branch information
jagodevreede committed Nov 19, 2024
1 parent ef4bbcb commit 12e08be
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/assemble-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ]
Expand Down

0 comments on commit 12e08be

Please sign in to comment.