From 9da1eed4bf80c139b86c4a21d18eb122fa6f92b9 Mon Sep 17 00:00:00 2001 From: vkartk <53650724+vkartk@users.noreply.github.com> Date: Tue, 4 Jun 2024 08:49:29 +0530 Subject: [PATCH] Add Missing DEPENDENCIES_AVAILABILITY --- .github/workflows/build-docker-image-alpine.yml | 2 +- .github/workflows/build-docker-image-standard.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-docker-image-alpine.yml b/.github/workflows/build-docker-image-alpine.yml index 876c351..e03a4f7 100644 --- a/.github/workflows/build-docker-image-alpine.yml +++ b/.github/workflows/build-docker-image-alpine.yml @@ -78,11 +78,11 @@ jobs: if [ $RETRY_COUNT -ge $MAX_RETRIES ]; then echo "Caddy version ${{ env.VERSION }}-builder-alpine or ${{ env.VERSION }}-alpine is not available after $MAX_RETRIES retries. Triggering workflow again." echo "DEPENDENCIES_AVAILABILITY=false" >> $GITHUB_ENV - exit 1 fi echo "Caddy version ${{ env.VERSION }}-builder-alpine or ${{ env.VERSION }}-alpine is not available. Retrying in $SLEEP_INTERVAL seconds..." sleep $SLEEP_INTERVAL done + echo "DEPENDENCIES_AVAILABILITY=true" >> $GITHUB_ENV - name: Trigger Build Workflow if: env.DEPENDENCIES_AVAILABILITY == 'false' diff --git a/.github/workflows/build-docker-image-standard.yml b/.github/workflows/build-docker-image-standard.yml index 5075f98..87a684e 100644 --- a/.github/workflows/build-docker-image-standard.yml +++ b/.github/workflows/build-docker-image-standard.yml @@ -78,7 +78,6 @@ jobs: if [ $RETRY_COUNT -ge $MAX_RETRIES ]; then echo "Caddy version ${{ env.VERSION }}-builder or ${{ env.VERSION }} is not available after $MAX_RETRIES retries. Setting environment variable to trigger job again." echo "DEPENDENCIES_AVAILABILITY=false" >> $GITHUB_ENV - exit 1 fi echo "Caddy version ${{ env.VERSION }}-builder or ${{ env.VERSION }} is not available. Retrying in $SLEEP_INTERVAL seconds..." sleep $SLEEP_INTERVAL