diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e22d1c0f..36bac0018 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -112,12 +112,12 @@ jobs: with: result-encoding: string script: | - const tagRefObj = await github.git.getRef({ + const tagRefObj = await github.rest.git.getRef({ ...context.repo, ref: context.ref.replace('refs/', '') }); - const tagObj = await github.git.getTag({ + const tagObj = await github.rest.git.getTag({ ...context.repo, tag_sha: tagRefObj.data.object.sha });