mirror of
https://github.com/LamGC/jenkins-agent-with-docker.git
synced 2025-04-29 22:27:31 +00:00
5 lines
233 B
Bash
5 lines
233 B
Bash
LATEST_VERSION=$(curl -s https://api.github.com/repos/jenkinsci/docker-agent/releases/latest | grep tag_name | cut -d '"' -f 4)
|
|
if [ "$LATEST_VERSION" != "$(cat LATEST_VERSION)" ]; then
|
|
echo "$LATEST_VERSION" > LATEST_VERSION
|
|
fi
|