From c4f3bf67e6b9a14ac7c76ee2945295c152ba2d41 Mon Sep 17 00:00:00 2001 From: dsotirakis Date: Fri, 3 Jan 2025 16:51:01 +0200 Subject: [PATCH] Login to GAR only if push=true --- actions/push-to-gar-docker/action.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/actions/push-to-gar-docker/action.yaml b/actions/push-to-gar-docker/action.yaml index 7c95ca52c..9b356a82c 100644 --- a/actions/push-to-gar-docker/action.yaml +++ b/actions/push-to-gar-docker/action.yaml @@ -132,6 +132,7 @@ runs: echo "project=${PROJECT}" | tee -a ${GITHUB_OUTPUT} - name: Login to GAR + if: ${{ inputs.push == 'true' }} uses: ./shared-workflows/actions/login-to-gar with: environment: ${{ inputs.environment }}