Merge pull request #753 from zachborboa/master

Fix release failure by fetching all tags during checkout
This commit is contained in:
Zach Borboa
2022-12-30 19:11:21 -08:00
committed by GitHub
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: |
-5
View File
@@ -31,11 +31,6 @@ def main():
# git for-each-ref --format="%(refname:short) | %(creatordate)" "refs/tags/*"
local_repo = git.Repo(ROOT)
# Fetch tags since `git fetch' is run with --no-tags during actions/checkout.
# git fetch --tags
for remote in local_repo.remotes:
remote.fetch('--tags')
# Sort the tags by version.
# git tag --list | sort --reverse --version-sort
tags = sorted(