Skip to content

Commit

Permalink
Add go mod tidy in update version script
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Morales committed Jan 8, 2025
1 parent 4f0f484 commit 6e24be6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # 5.2.0
with:
go-version: "^1.23"
- uses: technote-space/create-pr-action@91114507cf92349bec0a9a501c2edf1635427bc5 # 2.1.4
with:
EXECUTE_COMMANDS: |
Expand Down
8 changes: 8 additions & 0 deletions ci/update_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ if [[ ${DEBUG:-false} == "true" ]]; then
set -o xtrace
fi

if ! command -v go >/dev/null; then
curl -fsSL http://bit.ly/install_pkg | PKG=go-lang bash
# shellcheck disable=SC1091
source /etc/profile.d/path.sh
fi

go mod tidy -go="$(curl -sL https://golang.org/VERSION?m=text | sed -n 's/go//;s/\..$//;1p')"

# Update GitHub Action commit hashes
gh_actions=$(grep -r "uses: [a-zA-Z\-]*/[\_a-z\-]*@" .github/ | sed 's/@.*//' | awk -F ': ' '{ print $3 }' | sort -u)
for action in $gh_actions; do
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module github.com/electrocucaracha/kubevirt-actions-runner

go 1.23

toolchain go1.23.4

replace k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20240430033511-f0e62f92d13f

require (
Expand Down

0 comments on commit 6e24be6

Please sign in to comment.