forked from molecule-ai/molecule-core
fix(publish-runtime-autobump): shallow clone + explicit tag fetch
Gitea Actions runners cannot reach https://git.moleculesai.app over HTTPS (runbooks/gitea-operational-quirks.md §runner-network-isolation). fetch-depth: 0 on actions/checkout triggers a full repo history fetch that times out at ~15s, causing the workflow to fail on Gitea runners (main RED, issue #460). Fix: use fetch-depth: 1 (shallow clone) and explicitly fetch tags with git fetch origin --tags --depth=1. The collision check (git tag --list) still works since we only need the most recent tag, not full history. git push of the new tag works on a shallow clone. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
00f0a1066f
commit
dd992fcc9b
@ -43,10 +43,18 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
# Fetch full tag list so the bump logic can sanity-check against
|
||||
# what's already in this repo (catches collision with prior
|
||||
# manual tag pushes).
|
||||
fetch-depth: 0
|
||||
# Shallow clone — depth 1 is enough for the workspace-diff check.
|
||||
# Tags needed for the collision check below are fetched explicitly
|
||||
# in the next step, bypassing the runner-network timeout that
|
||||
# full-history fetch triggers on Gitea Actions runners
|
||||
# (runbooks/gitea-operational-quirks.md §runner-network-isolation).
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Fetch tags for collision check
|
||||
# fetch-depth: 1 gets only the most recent commit's refs, not the
|
||||
# tag that points at it. Do a targeted tag fetch so git tag --list
|
||||
# below can detect collision with prior manual pushes.
|
||||
run: git fetch origin --tags --depth=1
|
||||
|
||||
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
||||
with:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user