Skip to content

Commit

Permalink
Give gh api a token
Browse files Browse the repository at this point in the history
and remind my future self to push changes
  • Loading branch information
solvaholic committed Jul 29, 2021
1 parent 541a7f8 commit c299aeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/update-major.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c299aeb

Please sign in to comment.