Skip to content

Commit

Permalink
ci: fix checkout of tag in release workflow
Browse files Browse the repository at this point in the history
This is a partial revert of 0115c28; apparently actions/checkout's
"fetch-tags" property is broken and gives errors at checkout time.

Ref: actions/checkout#1467
  • Loading branch information
tigarmo committed Jul 4, 2024
1 parent 69cd16b commit 1d60b50
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 1
- name: Check git tag
- name: Fetch tag annotations
run: |
# Print out the output of 'git describe' for debugging
# Note: we fetch the tags here instead of using actions/checkout's "fetch-tags"
# because of https://github.com/actions/checkout/issues/1467
git fetch --force --tags --depth 1
git describe --dirty --long --match '[0-9]*.[0-9]*.[0-9]*' --exclude '*[^0-9.]*'
- name: Setup Python
uses: actions/setup-python@v5
Expand Down

0 comments on commit 1d60b50

Please sign in to comment.