Skip to content

Commit

Permalink
fix: Attempt to workaround actions/checkout#1467 (2)
Browse files Browse the repository at this point in the history
Currently, the checkout GitHub Action failed to check out when both
`fetch-depth` and `fetch-tags` are specified during a tag push
event(actions/checkout#1467).  This patch workarounds the issue by
manually do the tag fetch afterwards.

Refer-to: Can't fetch with `fetch-tags` when triggered by tag · Issue #1467 · actions/checkout <actions/checkout#1467>
Refer-to: Switch back to an improved manual tag fetching method · wxFormBuilder/wxFormBuilder@459563b <wxFormBuilder/wxFormBuilder@459563be8>
Signed-off-by: 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
  • Loading branch information
brlin-tw committed Nov 26, 2023
1 parent a47d779 commit b2ca0a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
run: |-
git fetch \
--prune \
--prune-tags \
--force \
--depth=1 \
--no-recurse-submodules
Expand Down

0 comments on commit b2ca0a1

Please sign in to comment.