Compare commits

...

18 Commits

Author SHA1 Message Date
8c81edab42 Update LATEST_VERSION to 3309.v27b_9314fd1a_4-6
Some checks are pending
Build container image / build (push) Waiting to run
2025-07-01 00:25:23 +00:00
c523c36a02 Update LATEST_VERSION to 3309.v27b_9314fd1a_4-5
Some checks failed
Build container image / build (push) Has been cancelled
Check upstream updates / check-updates (push) Has been cancelled
2025-06-19 00:22:20 +00:00
5c8a628529 Update LATEST_VERSION to 3309.v27b_9314fd1a_4-4
Some checks failed
Build container image / build (push) Has been cancelled
2025-06-03 00:22:04 +00:00
5765948be9 Update LATEST_VERSION to 3309.v27b_9314fd1a_4-3
Some checks failed
Build container image / build (push) Has been cancelled
2025-05-23 00:21:26 +00:00
a72d9ce755 Update LATEST_VERSION to 3309.v27b_9314fd1a_4-2
Some checks failed
Build container image / build (push) Has been cancelled
2025-05-15 00:19:46 +00:00
b69ee66242 Update LATEST_VERSION to 3309.v27b_9314fd1a_4-1
Some checks failed
Build container image / build (push) Has been cancelled
2025-05-07 00:21:07 +00:00
de0e6a0160 Update LATEST_VERSION to 3307.v632ed11b_3a_c7-2
Some checks failed
Build container image / build (push) Has been cancelled
2025-04-24 00:20:25 +00:00
667361a028 Update LATEST_VERSION to 3301.v4363ddcca_4e7-3
Some checks failed
Build container image / build (push) Has been cancelled
2025-04-01 00:22:48 +00:00
1c4acc9940 Update LATEST_VERSION to 3301.v4363ddcca_4e7-2
Some checks failed
Build container image / build (push) Has been cancelled
2025-03-28 00:19:25 +00:00
1fc4b5251f Update LATEST_VERSION to 3301.v4363ddcca_4e7-1
Some checks are pending
Build container image / build (push) Waiting to run
2025-03-27 00:19:24 +00:00
8e98bbd632 Update LATEST_VERSION to 3299.v0d0d06908537-2
Some checks are pending
Build container image / build (push) Waiting to run
2025-03-26 00:19:35 +00:00
81f486ad63 Update LATEST_VERSION to 3299.v0d0d06908537-1
Some checks failed
Build container image / build (push) Has been cancelled
2025-03-19 00:19:51 +00:00
bc384a5eea Update LATEST_VERSION to 3291.vb_131b_dc231fa_-1
Some checks failed
Build container image / build (push) Has been cancelled
2025-03-06 00:19:31 +00:00
9cbde12787 Update LATEST_VERSION to 3283.v92c105e0f819-9
Some checks failed
Build container image / build (push) Has been cancelled
2025-02-19 00:18:28 +00:00
d5591c3691 Update LATEST_VERSION to 3283.v92c105e0f819-8
Some checks failed
Build container image / build (push) Has been cancelled
2025-02-04 00:18:00 +00:00
78b0d464f3 Update LATEST_VERSION to 3283.v92c105e0f819-7
Some checks failed
Build container image / build (push) Has been cancelled
2025-01-19 00:19:44 +00:00
538b70656e Update LATEST_VERSION to 3283.v92c105e0f819-6
Some checks failed
Build container image / build (push) Has been cancelled
2025-01-14 01:33:04 +00:00
599c6372d8 fix: 使用 jq 以确保可以获取确切的 tag_name. 2025-01-14 09:31:37 +08:00
3 changed files with 13 additions and 3 deletions

View File

@ -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

View File

@ -1 +1 @@
3309.v27b_9314fd1a_4-6

View File

@ -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