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' }}