mirror of
https://github.com/LamGC/jenkins-agent-with-docker.git
synced 2025-04-30 06:37:29 +00:00
4 lines
240 B
Bash
4 lines
240 B
Bash
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 |