Skip to content

Commit

Permalink
Update script
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Mar 4, 2023
1 parent d0c2c6d commit 0a18097
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions refresh-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SCRIPT_NAME=$(basename "${BASH_SOURCE[0]}")

GITHUB_USER=${GITHUB_USER:-1gtm}
PR_BRANCH=k1260 #generic-repo-refresher # -$(date +%s)
COMMIT_MSG="Update wrokflows (Go 1.20, k8s 1.26)"
COMMIT_MSG="Update workflows (Go 1.20, k8s 1.26)"

REPO_ROOT=/tmp/g1260

Expand Down Expand Up @@ -81,7 +81,7 @@ refresh() {
pushd .github/workflows

# hugo
sed -i 's|0.100.2|0.111.1|g' *
sed -i 's|v0.100.2/hugo_extended_0.100.2_Linux-64bit.deb|v0.111.1/hugo_extended_0.111.1_linux-amd64.deb|g' *

# update engineerd/setup-kind
sed -i 's|cert-manager/cert-manager/releases/download/v1.9.1/|cert-manager/cert-manager/releases/download/v1.11.0/|g' *
Expand All @@ -96,8 +96,14 @@ refresh() {

# update GO
sed -i 's/Go\ 1.19/Go\ 1.20/g' *




sed -i 's/go-version:\ 1.19/go-version:\ 1.20/g' *
sed -i 's/go-version:\ ^1.19/go-version:\ ^1.20/g' *
sed -i "s/go-version:\ 1.20/go-version:\ '1.20'/g" *
sed -i "s/go-version:\ ^1.20/go-version:\ '1.20'/g" *
sed -i "s/node-version:\ '14'/node-version:\ '16'/g" *
sed -i "s/node-version:\ 14.x/node-version:\ '16'/g" *
# sed -i 's|/gh-tools/releases/download/v0.2.12/|/gh-tools/releases/download/v0.2.13/|g' *
Expand All @@ -112,10 +118,14 @@ refresh() {
sed -i 's|ioutil.TempDir|os.MkdirTemp|g' `grep 'ioutil.TempDir' -rl *`
sed -i 's|ioutil.TempFile|os.CreateTemp|g' `grep 'ioutil.TempFile' -rl *`

go get golang.org/x/[email protected]
go get kmodules.xyz/[email protected]
go get github.com/modern-go/[email protected]
go get github.com/json-iterator/[email protected]
go mod edit \
-require=github.com/modern-go/[email protected] \
-require=github.com/json-iterator/[email protected] \
-require=golang.org/x/[email protected] \
-require=golang.org/x/[email protected] \
-require=go.bytebuilders.dev/[email protected]
# -require=kmodules.xyz/[email protected]

go mod tidy
go mod vendor
}
Expand Down Expand Up @@ -166,5 +176,5 @@ while IFS=, read -r -u9 repo cmd; do
fi
refresh "$repo" "$cmd"
echo "################################################################################"
sleep 5
# sleep 10
done 9<$1

0 comments on commit 0a18097

Please sign in to comment.