diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 11461d24..7f4315e2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,7 +76,7 @@ jobs: NOTES: | [Changelog](https://anymail.dev/en/stable/changelog/#${{ steps.version.outputs.anchor }}) run: | - if ! gh release edit "$TAG" --verify-tag --target "$GITHUB_REF" --title "$TITLE" --notes "$NOTES"; then - gh release create "$TAG" --verify-tag --target "$GITHUB_REF" --title "$TITLE" --notes "$NOTES" + if ! gh release edit "$TAG" --verify-tag --target "$GITHUB_SHA" --title "$TITLE" --notes "$NOTES"; then + gh release create "$TAG" --verify-tag --target "$GITHUB_SHA" --title "$TITLE" --notes "$NOTES" fi gh release upload "$TAG" ./dist/*