Skip to content

Commit

Permalink
github
Browse files Browse the repository at this point in the history
Signed-off-by: weizhoublue <[email protected]>
  • Loading branch information
weizhoublue committed Dec 25, 2024
1 parent d4119c7 commit 36d27ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-golang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
update:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ update_workflow_golang:
# Update Go version in go.mod
.PHONY: update_mod_golang
update_mod_golang:
GO_MAJOR_AND_MINOR_VERSION=` grep -o -E '^[0-9]+\.[0-9]+' <<< "$(GO_VERSION)" `
GO_MAJOR_AND_MINOR_VERSION=` grep -o -E '^[0-9]+\.[0-9]+' <<< "$(GO_VERSION)" ` ; \
GO_MAJOR_AND_MINOR_VERSION=` echo $(GO_VERSION) | grep -o -E '^[0-9]+\.[0-9]+' `
GO_MAJOR_AND_MINOR_VERSION=` echo $(GO_VERSION) | grep -o -E '^[0-9]+\.[0-9]+' ` ; \
echo "update go.mod to $${GO_MAJOR_AND_MINOR_VERSION}" ; \
sed -i -E 's/^go .*/go '"$${GO_MAJOR_AND_MINOR_VERSION}"'/g' go.mod

Expand Down

0 comments on commit 36d27ea

Please sign in to comment.