From c299aeb81fc3aa879bb993a1b2e7b62877515c5f Mon Sep 17 00:00:00 2001 From: "Roger D. Winans" Date: Wed, 28 Jul 2021 22:07:53 -0400 Subject: [PATCH] Give `gh api` a token and remind my future self to push changes --- .github/workflows/update-major.yml | 3 ++- docs/release.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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