From 568fa2414f97fce9731de95fa1db1b1e395fcdc8 Mon Sep 17 00:00:00 2001 From: penumbra23 Date: Wed, 3 Jul 2024 12:56:31 +0200 Subject: [PATCH] Fix syntax error in composite step --- .github/actions/buildah-action/action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/buildah-action/action.yaml b/.github/actions/buildah-action/action.yaml index a831bf0da..ce98df287 100644 --- a/.github/actions/buildah-action/action.yaml +++ b/.github/actions/buildah-action/action.yaml @@ -78,13 +78,13 @@ runs: - name: Login to registry shell: bash - if: ${{ inputs.registry }} && ${{ inputs.username }} && ${{ inputs.password }} + if: ${{ inputs.push == 'true' && inputs.registry && inputs.username && inputs.password }} run: | echo ${{ inputs.password }} | buildah login -u ${{ inputs.username }} --password-stdin ${{ inputs.registry }} - name: Push the image shell: bash - if: ${{ inputs.push }} == 'true' + if: ${{ inputs.push == 'true' }} run: | buildah push ${{ inputs.image_name }}:${{ github.sha }} ${{ inputs.registry }}/${{ inputs.image_name }}:${{ github.sha }}