Skip to content

Commit

Permalink
feat: update actions/setup-go, fix root dir for go generate (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrparkers authored Jul 26, 2024
1 parent 03c708a commit 0494031
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ runs:
using: "composite"
steps:
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: ${{ inputs.root }}/go.mod
cache-dependency-path: ${{ inputs.root }}/go.sum
cache: true
- name: Verify generated code is up to date
shell: bash
run: |
cd ${{ inputs.root }}
if (( $(git status --porcelain=v1 2>/dev/null | wc -l) > 0 )); then
# Already have changes. Skip running generate
exit 0
Expand Down

0 comments on commit 0494031

Please sign in to comment.