diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eb5f0ff..9bcda37 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,7 +23,9 @@ jobs: run: | set -euxo pipefail echo "Default branch: ${DEFAULT_BRANCH}" - git fetch origin "${DEFAULT_BRANCH}" --tags + # Do NOT fetch tags; fetching tags can fail on tag-triggered workflows + # because the runner already has the triggering tag checked out. + git fetch --no-tags origin "${DEFAULT_BRANCH}" git merge-base --is-ancestor "${GITHUB_SHA}" "origin/${DEFAULT_BRANCH}" build_wheels: @@ -141,4 +143,4 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: packages-dir: upload - skip-existing: true + skip-existing: true \ No newline at end of file diff --git a/README.md b/README.md index 19dc757..9a582f0 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ :ocean: :cyclone: -[![Tests](https://github.com/CHLNDDEV/oceanmesh/actions/workflows/testing.yml/badge.svg)](https://github.com/CHLNDDEV/oceanmesh/actions/workflows/testing.yml) +[![Tests](https://github.com/CHLNDDEV/oceanmesh/actions/workflows/testing.yml/badge.svg)](https://github.com/CHLNDDEV/oceanmesh/actions/workflows/ci.yml) [![CodeCov](https://codecov.io/gh/CHLNDDEV/oceanmesh/branch/master/graph/badge.svg)](https://codecov.io/gh/CHLNDDEV/oceanmesh)