diff options
| -rw-r--r-- | .github/workflows/update-version-tags.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/update-version-tags.yml b/.github/workflows/update-version-tags.yml index 450ea95e..eb87f801 100644 --- a/.github/workflows/update-version-tags.yml +++ b/.github/workflows/update-version-tags.yml @@ -20,7 +20,7 @@ jobs: steps: - name: Move version tag to pushed SHA env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ github.token }} REPO: ${{ github.repository }} SHA: ${{ github.sha }} BRANCH: ${{ github.ref_name }} @@ -33,7 +33,7 @@ jobs: *) echo "Unexpected branch: $BRANCH" >&2; exit 1 ;; esac echo "Pointing tag '$TAG' at $SHA (branch $BRANCH)" - if gh api "repos/$REPO/git/refs/tags/$TAG" >/dev/null 2>&1; then + if gh api "repos/$REPO/git/ref/tags/$TAG" >/dev/null 2>&1; then gh api -X PATCH "repos/$REPO/git/refs/tags/$TAG" \ -f sha="$SHA" -F force=true else |
