CI: unshallow the runner's repo to get the version for building container
All checks were successful
/ build (push) Successful in 21s
All checks were successful
/ build (push) Successful in 21s
This commit is contained in:
parent
9a0406d9e8
commit
aacf0f535b
1 changed files with 6 additions and 2 deletions
|
@ -31,9 +31,13 @@ jobs:
|
|||
- name: Build package (transpile ts => js)
|
||||
run: ng build
|
||||
|
||||
- name: Get the version from git
|
||||
id: version
|
||||
- name: Git unshallow - get all history from Git to get the tag for the computation of the version
|
||||
if: ${{ inputs.build }}
|
||||
run: git pull --unshallow
|
||||
|
||||
- name: Get the version from git
|
||||
if: ${{ inputs.build }}
|
||||
id: version
|
||||
run: echo "version=$(git describe --dirty --tags)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build container
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue