File tree Expand file tree Collapse file tree 10 files changed +65
-36
lines changed Expand file tree Collapse file tree 10 files changed +65
-36
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,15 @@ jobs:
1313 - name : cron-update / get latest version
1414 run : |
1515 LATEST_VERSION=$(curl -s https://api.github.com/repos/curl/curl/releases/latest | jq -r '.tag_name' | sed 's/_/./g' | sed 's/curl-//')
16- echo "LATEST_VERSION=${LATEST_VERSION}" >> "${GITHUB_ENV}"
17- if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/curl-${LATEST_VERSION}; then
18- echo "tag ${LATEST_VERSION} exists already!"
16+ if [ "${LATEST_VERSION}" != "null" ]; then
17+ if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/curl-${LATEST_VERSION}; then
18+ echo "tag ${LATEST_VERSION} exists already!"
19+ else
20+ echo "WORKFLOW_AUTO_UPDATE=true" >> "${GITHUB_ENV}"
21+ echo "LATEST_VERSION=${LATEST_VERSION}" >> "${GITHUB_ENV}"
22+ fi
1923 else
20- echo "WORKFLOW_AUTO_UPDATE=true" >> "${GITHUB_ENV} "
24+ echo "tag ${LATEST_VERSION} is null! "
2125 fi
2226
2327 - name : init / base64 nested json
Original file line number Diff line number Diff line change @@ -13,11 +13,15 @@ jobs:
1313 - name : cron-update / get latest version
1414 run : |
1515 LATEST_VERSION=$(curl -s https://api.github.com/repos/ameshkov/dnslookup/releases/latest | jq -r '.tag_name' | sed 's/v//')
16- echo "LATEST_VERSION=${LATEST_VERSION}" >> "${GITHUB_ENV}"
17- if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/dnslookup-${LATEST_VERSION}; then
18- echo "tag ${LATEST_VERSION} exists already!"
16+ if [ "${LATEST_VERSION}" != "null" ]; then
17+ if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/dnslookup-${LATEST_VERSION}; then
18+ echo "tag ${LATEST_VERSION} exists already!"
19+ else
20+ echo "WORKFLOW_AUTO_UPDATE=true" >> "${GITHUB_ENV}"
21+ echo "LATEST_VERSION=${LATEST_VERSION}" >> "${GITHUB_ENV}"
22+ fi
1923 else
20- echo "WORKFLOW_AUTO_UPDATE=true" >> "${GITHUB_ENV} "
24+ echo "tag ${LATEST_VERSION} is null! "
2125 fi
2226
2327 - name : init / base64 nested json
Original file line number Diff line number Diff line change @@ -13,11 +13,15 @@ jobs:
1313 - name : cron-update / get latest version
1414 run : |
1515 LATEST_VERSION=5.46
16- echo "LATEST_VERSION=${LATEST_VERSION}" >> "${GITHUB_ENV}"
17- if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/file-${LATEST_VERSION}; then
18- echo "tag ${LATEST_VERSION} exists already!"
16+ if [ "${LATEST_VERSION}" != "null" ]; then
17+ if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/file-${LATEST_VERSION}; then
18+ echo "tag ${LATEST_VERSION} exists already!"
19+ else
20+ echo "WORKFLOW_AUTO_UPDATE=true" >> "${GITHUB_ENV}"
21+ echo "LATEST_VERSION=${LATEST_VERSION}" >> "${GITHUB_ENV}"
22+ fi
1923 else
20- echo "WORKFLOW_AUTO_UPDATE=true" >> "${GITHUB_ENV} "
24+ echo "tag ${LATEST_VERSION} is null! "
2125 fi
2226
2327 - name : init / base64 nested json
Original file line number Diff line number Diff line change @@ -13,11 +13,15 @@ jobs:
1313 - name : cron-update / get latest version
1414 run : |
1515 LATEST_VERSION=$(curl -s https://api.github.com/repos/go-acme/lego/releases/latest | jq -r '.tag_name' | sed 's/v//')
16- echo "LATEST_VERSION=${LATEST_VERSION}" >> "${GITHUB_ENV}"
17- if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/lego-${LATEST_VERSION}; then
18- echo "tag ${LATEST_VERSION} exists already!"
16+ if [ "${LATEST_VERSION}" != "null" ]; then
17+ if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/lego-${LATEST_VERSION}; then
18+ echo "tag ${LATEST_VERSION} exists already!"
19+ else
20+ echo "WORKFLOW_AUTO_UPDATE=true" >> "${GITHUB_ENV}"
21+ echo "LATEST_VERSION=${LATEST_VERSION}" >> "${GITHUB_ENV}"
22+ fi
1923 else
20- echo "WORKFLOW_AUTO_UPDATE=true" >> "${GITHUB_ENV} "
24+ echo "tag ${LATEST_VERSION} is null! "
2125 fi
2226
2327 - name : init / base64 nested json
Original file line number Diff line number Diff line change 1313 - name : cron-update / get latest version
1414 run : |
1515 LATEST_VERSION=$(curl -s https://api.github.com/repos/nodejs/node/releases/latest | jq -r '.tag_name' | sed 's/v//')
16-
1716 if [ "${LATEST_VERSION}" != "null" ]; then
1817 if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/node-${LATEST_VERSION}; then
1918 echo "tag ${LATEST_VERSION} exists already!"
5352 - name : cron-update / get stable version
5453 run : |
5554 STABLE_VERSION=$(curl -sSL https://nodejs.org/en/download | grep -oE 'v[0-9]+.[0-9]+.[0-9]+ \(LTS\)' | sed -E 's/v(\d+.\d+.\d+) \(LTS\)/\1/')
56-
5755 if [ "${STABLE_VERSION}" != "null" ]; then
5856 if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/node-${STABLE_VERSION}-stable; then
5957 echo "tag ${STABLE_VERSION} exists already!"
Original file line number Diff line number Diff line change @@ -13,11 +13,15 @@ jobs:
1313 - name : cron-update / get latest version
1414 run : |
1515 LATEST_VERSION=$(curl -s https://api.github.com/repos/animetosho/par2cmdline-turbo/releases/latest | jq -r '.tag_name' | sed 's/v//')
16- echo "LATEST_VERSION=${LATEST_VERSION}" >> "${GITHUB_ENV}"
17- if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/par2-${LATEST_VERSION}; then
18- echo "tag ${LATEST_VERSION} exists already!"
16+ if [ "${LATEST_VERSION}" != "null" ]; then
17+ if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/par2-${LATEST_VERSION}; then
18+ echo "tag ${LATEST_VERSION} exists already!"
19+ else
20+ echo "WORKFLOW_AUTO_UPDATE=true" >> "${GITHUB_ENV}"
21+ echo "LATEST_VERSION=${LATEST_VERSION}" >> "${GITHUB_ENV}"
22+ fi
1923 else
20- echo "WORKFLOW_AUTO_UPDATE=true" >> "${GITHUB_ENV} "
24+ echo "tag ${LATEST_VERSION} is null! "
2125 fi
2226
2327 - name : init / base64 nested json
Original file line number Diff line number Diff line change @@ -13,11 +13,15 @@ jobs:
1313 - name : cron-update / get latest version
1414 run : |
1515 LATEST_VERSION=1.9.31
16- echo "LATEST_VERSION=${LATEST_VERSION}" >> "${GITHUB_ENV}"
17- if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/pv-${LATEST_VERSION}; then
18- echo "tag ${LATEST_VERSION} exists already!"
16+ if [ "${LATEST_VERSION}" != "null" ]; then
17+ if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/pv-${LATEST_VERSION}; then
18+ echo "tag ${LATEST_VERSION} exists already!"
19+ else
20+ echo "WORKFLOW_AUTO_UPDATE=true" >> "${GITHUB_ENV}"
21+ echo "LATEST_VERSION=${LATEST_VERSION}" >> "${GITHUB_ENV}"
22+ fi
1923 else
20- echo "WORKFLOW_AUTO_UPDATE=true" >> "${GITHUB_ENV} "
24+ echo "tag ${LATEST_VERSION} is null! "
2125 fi
2226
2327 - name : init / base64 nested json
Original file line number Diff line number Diff line change @@ -13,11 +13,15 @@ jobs:
1313 - name : cron-update / get latest version
1414 run : |
1515 LATEST_VERSION=2.44
16- echo "LATEST_VERSION=${LATEST_VERSION}" >> "${GITHUB_ENV}"
17- if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/strip-${LATEST_VERSION}; then
18- echo "tag ${LATEST_VERSION} exists already!"
16+ if [ "${LATEST_VERSION}" != "null" ]; then
17+ if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/strip-${LATEST_VERSION}; then
18+ echo "tag ${LATEST_VERSION} exists already!"
19+ else
20+ echo "WORKFLOW_AUTO_UPDATE=true" >> "${GITHUB_ENV}"
21+ echo "LATEST_VERSION=${LATEST_VERSION}" >> "${GITHUB_ENV}"
22+ fi
1923 else
20- echo "WORKFLOW_AUTO_UPDATE=true" >> "${GITHUB_ENV} "
24+ echo "tag ${LATEST_VERSION} is null! "
2125 fi
2226
2327 - name : init / base64 nested json
Original file line number Diff line number Diff line change @@ -13,11 +13,15 @@ jobs:
1313 - name : cron-update / get latest version
1414 run : |
1515 LATEST_VERSION=$(curl -s https://www.rarlab.com/rar_add.htm | grep -i '>UnRAR source</a>' | grep -oEi '[0-9].[0-9].[0-9]')
16- echo "LATEST_VERSION=${LATEST_VERSION}" >> "${GITHUB_ENV}"
17- if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/unrar-${LATEST_VERSION}; then
18- echo "tag ${LATEST_VERSION} exists already!"
16+ if [ "${LATEST_VERSION}" != "null" ]; then
17+ if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/unrar-${LATEST_VERSION}; then
18+ echo "tag ${LATEST_VERSION} exists already!"
19+ else
20+ echo "WORKFLOW_AUTO_UPDATE=true" >> "${GITHUB_ENV}"
21+ echo "LATEST_VERSION=${LATEST_VERSION}" >> "${GITHUB_ENV}"
22+ fi
1923 else
20- echo "WORKFLOW_AUTO_UPDATE=true" >> "${GITHUB_ENV} "
24+ echo "tag ${LATEST_VERSION} is null! "
2125 fi
2226
2327 - name : init / base64 nested json
Original file line number Diff line number Diff line change 1212 steps :
1313 - name : cron-update / get latest version
1414 run : |
15- LATEST_VERSION=$(curl -s https://api.github.com/repos/upx/upx/releases/latest | jq -r '.tag_name' | sed 's/v//')
16-
15+ LATEST_VERSION=$(curl -s https://api.github.com/repos/upx/upx/releases/latest | jq -r '.tag_name' | sed 's/v//')
1716 if [ "${LATEST_VERSION}" != "null" ]; then
1817 if curl -kILs --fail https://hub.docker.com/v2/repositories/11notes/distroless/tags/upx-${LATEST_VERSION}; then
1918 echo "tag ${LATEST_VERSION} exists already!"
You can’t perform that action at this time.
0 commit comments