Fix release failure by fetching all tags during checkout

Command:
  for remote in local_repo.remotes:
      remote.fetch('--tags')

Error message:
  git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
    cmdline: git fetch -v -- origin --tags
    stderr: 'fatal: couldn't find remote ref --tags'

Before:
    Fetching the repository
    /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin [...]

After:
    Fetching the repository
    /usr/bin/git -c protocol.version=2 fetch --prune --progress --no-recurse-submodules origin [...]
This commit is contained in:
Zach Borboa
2022-12-30 18:03:02 -08:00
parent ac45a3d212
commit b5e90e45a9
2 changed files with 2 additions and 5 deletions
+2
View File
@@ -14,6 +14,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install requirements
run: |