From 4f0643c88828b50e8ba47d2c8dc04138a96ecb81 Mon Sep 17 00:00:00 2001 From: Guillaume Kulakowski Date: Fri, 26 Jan 2024 17:45:22 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20GH=20Actions=20syntaxe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/devops.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/devops.yml b/.github/workflows/devops.yml index 8d7e84a..091aba7 100644 --- a/.github/workflows/devops.yml +++ b/.github/workflows/devops.yml @@ -1,7 +1,6 @@ name: DevOps on: [push, pull_request] - env: pythonLastVersion: '3.11' GHCR_REGISTRY: ghcr.io @@ -57,7 +56,7 @@ jobs: # Dockerfile tests # test_dockerfiles: - if: github.event.schedule == '' + if: ${{ github.event.schedule == '' }} runs-on: ubuntu-latest name: Linters for Dockerfile steps: @@ -72,7 +71,7 @@ jobs: # SonarCloud job # test_sonar: - if: github.event_name != 'pull_request' + if: ${{ github.event_name != 'pull_request' }} needs: [ test_python, test_markdownlint, @@ -175,7 +174,7 @@ jobs: # Build and deploy job (only on main) # docker_build_deploy: - if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || ${{ startsWith(github.ref, 'refs/tags/v') }}) + if: ${{ github.event_name != 'pull_request' && ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') ) }} needs: [ test_docker ] @@ -209,7 +208,7 @@ jobs: # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action - name: Build and push Docker image - if: github.ref == 'refs/heads/main' + if: ${{ github.ref == 'refs/heads/main' }} uses: docker/build-push-action@v5 with: push: ${{ github.event_name != 'pull_request' }}