mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-19 13:21:46 +00:00
fix(ci): skip git fetch and tag logic in act (no remote access in local containers)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user