fix: force-add build metadata files to override .gitignore

This commit is contained in:
Christian Krakau-Louis
2026-02-11 18:59:59 +01:00
parent bb1370d46e
commit f254e1b14b
+2 -2
View File
@@ -53,7 +53,7 @@ jobs:
run: | run: |
for f in VERSION BUILD_DATE GIT_SHA RUNTIME_INFO; do for f in VERSION BUILD_DATE GIT_SHA RUNTIME_INFO; do
if [ -f "$f" ]; then if [ -f "$f" ]; then
git add "$f" git add -f "$f"
fi fi
done done
if ! git diff --staged --quiet; then if ! git diff --staged --quiet; then
@@ -70,4 +70,4 @@ jobs:
const ref = context.ref; const ref = context.ref;
const tag = ref.replace('refs/tags/', ''); const tag = ref.replace('refs/tags/', '');
console.log(`New tag created: ${tag}`); console.log(`New tag created: ${tag}`);
console.log('Docker build will be triggered automatically by the docker-build workflow'); console.log('Docker build will be triggered automatically by the docker-build workflow');