From c9a8bf82956a58cb0156f2d45046f9b5d5920948 Mon Sep 17 00:00:00 2001 From: "Dan P." Date: Wed, 28 Aug 2024 09:10:05 -0400 Subject: [PATCH] Ensure step conditions are respected --- actions/publish-image/action.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/actions/publish-image/action.yaml b/actions/publish-image/action.yaml index 75ca4dc2..cc2eaae9 100644 --- a/actions/publish-image/action.yaml +++ b/actions/publish-image/action.yaml @@ -131,7 +131,7 @@ runs: # Short-circuit if either fails. This should decrease the likelihood # of only one registry getting updated while the other fails. - name: Login to registry [Public] - if: ${{ inputs.push-to-public }} + if: ${{ inputs.push-to-public == true || inputs.push-to-public == 'true' }} uses: docker/login-action@v3 with: registry: ${{ inputs.public-registry }} @@ -139,7 +139,7 @@ runs: password: ${{ inputs.public-password }} - name: Login to registry [Prime] - if: ${{ inputs.push-to-prime }} + if: ${{ inputs.push-to-prime == true || inputs.push-to-prime == 'true' }} uses: docker/login-action@v3 with: registry: ${{ inputs.prime-registry }} @@ -155,7 +155,7 @@ runs: - name: Build and push image [Public] shell: bash - if: ${{ inputs.push-to-public }} + if: ${{ inputs.push-to-public == true || inputs.push-to-public == 'true' }} run: | make ${{ inputs.make-target }} env: @@ -165,7 +165,7 @@ runs: - name: Build and push image [Prime] shell: bash - if: ${{ inputs.push-to-prime }} + if: ${{ inputs.push-to-prime == true || inputs.push-to-prime == 'true' }} run: | IID_FILE=$(mktemp) export IID_FILE_FLAG="--iidfile ${IID_FILE}"