Skip to content

Commit

Permalink
arnested/go-version-action doesn't need GITHUB_TOKEN anymore
Browse files Browse the repository at this point in the history
Instead of getting the Go releases from git tags using GitHub's
API (and thus needing the token to avoid being rate limited) it pulls
the versions from https://go.dev/dl/?mode=json&include=all.
  • Loading branch information
arnested committed Apr 5, 2022
1 parent 0e889ad commit 7f6d31a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ jobs:
with:
fetch-depth: 0
- name: Get Go version
uses: arnested/go-version-action@d44f8fbecf1ac5ea61d81603e99dfec9833f592f
uses: arnested/go-version-action@75e53ba83545379e9f189ecb73b53b8b3e126c7f
id: go-version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab
with:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ jobs:
matrix: ${{ steps.versions.outputs.matrix }}
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- uses: arnested/go-version-action@d44f8fbecf1ac5ea61d81603e99dfec9833f592f
- uses: arnested/go-version-action@75e53ba83545379e9f189ecb73b53b8b3e126c7f
id: versions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

run:
strategy:
Expand Down

0 comments on commit 7f6d31a

Please sign in to comment.