Skip to content

Commit

Permalink
Merge pull request #55 from katiem0/trunk
Browse files Browse the repository at this point in the history
Update `setup-go` action for latest version
  • Loading branch information
andyfeller authored Jun 3, 2024
2 parents 309b2c2 + cf5c5a4 commit ee3e4e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ A GitHub CLI extension is any GitHub repository named `gh-*` that publishes a Re

## Go extensions

> [!Note]
> With the use of `actions/setup-go@v5` for Go extensions, **cache is enabled by default** as part of the [action's `v4` release](https://github.com/actions/setup-go/releases/tag/v4.0.0). The action won’t throw an error if the cache can’t be restored or saved. The action will throw a warning message but it won’t stop a build process.
Create a workflow file at `.github/workflows/release.yml`:

```yaml
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ runs:
using: composite
steps:
# TODO: figure out how to avoid setting up Go for non-Go extensions
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
# The default go version is managed here because actions/setup-go favors go-version over go-version-file,
# requiring us to only pass it if no other inputs are provided.
Expand Down

0 comments on commit ee3e4e5

Please sign in to comment.