WIP: write version on build to form HTML

This commit is contained in:
Gianni Carafa
2023-11-15 18:02:58 +01:00
parent 7be62e2735
commit 5392992350
4 changed files with 13 additions and 4 deletions

View File

@@ -42,7 +42,11 @@ jobs:
- name: Set version
id: version
run: |
echo ${GITHUB_REF#refs/tags/v} > handlers/VERSION
VERSION=$(git describe --tags --abbrev=0)
echo -n $VERSION > handlers/VERSION
sed -i 's\VERSION\${VERSION}\g' handlers/form.html
echo handlers/form.html >> .gitignore
echo .gitignore >> .gitignore
# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer