fix(ci): skip git fetch and tag logic in act (no remote access in local containers)

This commit is contained in:
jubnl
2026-05-25 21:12:29 +02:00
parent f92b95e054
commit 67cf290cda
2 changed files with 13 additions and 0 deletions
+7
View File
@@ -31,6 +31,13 @@ jobs:
- name: Determine prerelease version - name: Determine prerelease version
id: bump id: bump
run: | run: |
# When running locally with act, skip tag logic and use a dummy version.
if [ -n "$ACT" ]; then
echo "VERSION=0.0.0-act" >> $GITHUB_OUTPUT
echo "SHA=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
exit 0
fi
git fetch --tags git fetch --tags
# Capture the exact commit we're building so build/merge jobs are pinned to it # Capture the exact commit we're building so build/merge jobs are pinned to it
+6
View File
@@ -45,6 +45,12 @@ jobs:
- name: Determine bump type and update version - name: Determine bump type and update version
id: bump id: bump
run: | run: |
# When running locally with act, skip tag logic and use a dummy version.
if [ -n "$ACT" ]; then
echo "VERSION=0.0.0-act" >> $GITHUB_OUTPUT
exit 0
fi
git fetch --tags git fetch --tags
# Derive version from git tags — no package.json dependency # Derive version from git tags — no package.json dependency