diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index f79ed20..a6e3747 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -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: | diff --git a/ci/update_versions.sh b/ci/update_versions.sh index 53aadac..54f3106 100755 --- a/ci/update_versions.sh +++ b/ci/update_versions.sh @@ -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 diff --git a/go.mod b/go.mod index 6bcf938..411ccfd 100644 --- a/go.mod +++ b/go.mod @@ -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 (