改用脚本来检查了,一脚踢开 github-scripts。

This commit is contained in:
2023-03-18 23:26:51 +08:00
parent 12deafa8ec
commit 826c7d738d
2 changed files with 14 additions and 17 deletions

4
update-version.sh Normal file
View File

@ -0,0 +1,4 @@
LATEST_VERSION=$(curl -s https://api.github.com/repos/jenkinsci/docker-inbound-agent/releases/latest | grep tag_name | cut -d '"' -f 4)
if [ "$LATEST_VERSION" != "$(cat LATEST_VERSION)" ]; then
echo "$LATEST_VERSION" > LATEST_VERSION
fi