This commit is contained in:
2024-09-12 08:57:44 +10:00
commit eb10ca9ca3
35 changed files with 1354 additions and 0 deletions

18
upgrade_templ.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
old_version=$(grep 'github.com/a-h/templ' go.mod | awk '{print $2}')
go install github.com/a-h/templ/cmd/templ@latest
go get -u github.com/a-h/templ
go mod tidy
new_version=$(grep 'github.com/a-h/templ' go.mod | awk '{print $2}')
sed -i '' -e "s/${old_version}/${new_version}/g" "Dockerfile"
for file in ".github/workflows"/*; do
if [ -f "$file" ]; then
sed -i '' -e "s/${old_version}/${new_version}/g" "$file"
fi
done