diff --git a/.github/workflows/update-major.yml b/.github/workflows/update-major.yml index 76256f5..f283ba3 100644 --- a/.github/workflows/update-major.yml +++ b/.github/workflows/update-major.yml @@ -37,7 +37,8 @@ jobs: _tag="${INPUT_TAG:-${GITHUB_REF#refs/tags/}}" # v2.2.0 _major="${MINOR%.*}" # v2 _msg="Release ${_tag}" - _curr="$(gh api /repos/:owner/:repo/releases/latest | \ + _curr="$(GITHUB_TOKEN=${{ github.token }} \ + gh api /repos/:owner/:repo/releases/latest | \ jq -r .tag_name)" # If tag pushed is not for latest release, exit early if [ "$_tag" != "$_curr" ]; then diff --git a/docs/release.md b/docs/release.md index 1253c6c..cba730c 100644 --- a/docs/release.md +++ b/docs/release.md @@ -11,6 +11,7 @@ - [ ] Rename _Unreleased_ section of CHANGELOG.md to release version - [ ] Any other changes to make? +- [ ] Push all changes - [ ] Finalize and publish the [release], which pushes the release tag