mirror of
https://github.com/LamGC/jenkins-agent-with-docker.git
synced 2025-07-02 05:17:24 +00:00
改用脚本来检查了,一脚踢开 github-scripts。
This commit is contained in:
4
update-version.sh
Normal file
4
update-version.sh
Normal 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
|
Reference in New Issue
Block a user