CI: unshallow the runner's repo to get the version for building container
All checks were successful
/ build (push) Successful in 21s

This commit is contained in:
phil 2024-11-02 22:31:30 +01:00
parent 9a0406d9e8
commit aacf0f535b

View file

@ -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