mirror of
https://github.com/LamGC/jenkins-agent-with-docker.git
synced 2025-07-01 12:57:25 +00:00
Compare commits
18 Commits
0f4dd3416d
...
main
Author | SHA1 | Date | |
---|---|---|---|
8c81edab42 | |||
c523c36a02 | |||
5c8a628529 | |||
5765948be9 | |||
a72d9ce755 | |||
b69ee66242 | |||
de0e6a0160 | |||
667361a028 | |||
1c4acc9940 | |||
1fc4b5251f | |||
8e98bbd632 | |||
81f486ad63 | |||
bc384a5eea | |||
9cbde12787 | |||
d5591c3691 | |||
78b0d464f3 | |||
538b70656e | |||
599c6372d8
|
2
.github/workflows/check-updates.yml
vendored
2
.github/workflows/check-updates.yml
vendored
@ -19,6 +19,8 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.CHECK_UPDATES_TOKEN }}
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get install -y jq
|
||||
- name: Check updates
|
||||
run: chmod +x ./update-version.sh && ./update-version.sh
|
||||
- name: Get latest version
|
||||
|
@ -1 +1 @@
|
||||
|
||||
3309.v27b_9314fd1a_4-6
|
||||
|
@ -1,4 +1,12 @@
|
||||
LATEST_VERSION=$(curl -s https://api.github.com/repos/jenkinsci/docker-agent/releases/latest | grep tag_name | cut -d '"' -f 4)
|
||||
#!/bin/bash
|
||||
|
||||
LATEST_VERSION=$(curl -s https://api.github.com/repos/jenkinsci/docker-agent/releases/latest | jq -r '.tag_name')
|
||||
CURL_EXIT_CODE=$?
|
||||
if [ $CURL_EXIT_CODE -ne 0 ] || [ -z "$LATEST_VERSION" ]; then
|
||||
echo "Failed to retrieve the latest version"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$LATEST_VERSION" != "$(cat LATEST_VERSION)" ]; then
|
||||
echo "$LATEST_VERSION" > LATEST_VERSION
|
||||
fi
|
||||
fi
|
Reference in New Issue
Block a user