From c96c8ec1898a508f0e522ad91e50080c867659bd Mon Sep 17 00:00:00 2001 From: Alexander Krimm Date: Mon, 22 Apr 2024 17:45:20 +0200 Subject: [PATCH] CI: fix github treating bools as strings in ci yml --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5a7a02f..b583f5f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,25 +33,25 @@ jobs: - name: Set up Docker Label id: docker-label run: | - if [ ${{ steps.changes.outputs.docker && github.event_name != 'push' }} = "true" ]; then + if [ ${{ steps.changes.outputs.docker == 'true' && github.event_name != 'push' }} = "true" ]; then echo "label=ghcr.io/fair-acc/gr4-build-container:$GITHUB_HEAD_REF" >> "$GITHUB_OUTPUT" else echo "label=ghcr.io/fair-acc/gr4-build-container:latest" >> "$GITHUB_OUTPUT" fi - name: Set up Docker Buildx - if: steps.changes.outputs.docker + if: steps.changes.outputs.docker == 'true' uses: docker/setup-buildx-action@v3 - uses: docker/login-action@v3 - if: steps.changes.outputs.docker + if: steps.changes.outputs.docker == 'true' with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v5 - if: steps.changes.outputs.docker + if: steps.changes.outputs.docker == 'true' with: context: "{{defaultContext}}:docker" push: true