mirror of
https://github.com/LamGC/jenkins-agent-with-docker.git
synced 2025-04-30 06:37:29 +00:00
Compare commits
No commits in common. "538b70656e997d6b2e2356dae7adbf8d36bf9672" and "0f4dd3416d7b3eb1fc2019ca3537e7b1de9b6203" have entirely different histories.
538b70656e
...
0f4dd3416d
2
.github/workflows/check-updates.yml
vendored
2
.github/workflows/check-updates.yml
vendored
@ -19,8 +19,6 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CHECK_UPDATES_TOKEN }}
|
token: ${{ secrets.CHECK_UPDATES_TOKEN }}
|
||||||
- name: Install dependencies
|
|
||||||
run: sudo apt-get install -y jq
|
|
||||||
- name: Check updates
|
- name: Check updates
|
||||||
run: chmod +x ./update-version.sh && ./update-version.sh
|
run: chmod +x ./update-version.sh && ./update-version.sh
|
||||||
- name: Get latest version
|
- name: Get latest version
|
||||||
|
@ -1 +1 @@
|
|||||||
3283.v92c105e0f819-6
|
|
||||||
|
@ -1,12 +1,4 @@
|
|||||||
#!/bin/bash
|
LATEST_VERSION=$(curl -s https://api.github.com/repos/jenkinsci/docker-agent/releases/latest | grep tag_name | cut -d '"' -f 4)
|
||||||
|
|
||||||
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
|
if [ "$LATEST_VERSION" != "$(cat LATEST_VERSION)" ]; then
|
||||||
echo "$LATEST_VERSION" > LATEST_VERSION
|
echo "$LATEST_VERSION" > LATEST_VERSION
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user