We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57ceac4 commit 168bbc4Copy full SHA for 168bbc4
.github/workflows/publish.yml
@@ -23,7 +23,9 @@ jobs:
23
run: |
24
set -euxo pipefail
25
echo "Default branch: ${DEFAULT_BRANCH}"
26
- git fetch origin "${DEFAULT_BRANCH}" --tags
+ # Do NOT fetch tags; fetching tags can fail on tag-triggered workflows
27
+ # because the runner already has the triggering tag checked out.
28
+ git fetch --no-tags origin "${DEFAULT_BRANCH}"
29
git merge-base --is-ancestor "${GITHUB_SHA}" "origin/${DEFAULT_BRANCH}"
30
31
build_wheels:
@@ -141,4 +143,4 @@ jobs:
141
143
uses: pypa/gh-action-pypi-publish@release/v1
142
144
with:
145
packages-dir: upload
- skip-existing: true
146
+ skip-existing: true
0 commit comments