diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index d3f906e2a1..b8d4550f07 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -33,7 +33,7 @@ jobs: packages: write steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - if: ${{ !inputs.self-hosted }} + - if: (!inputs.self-hosted) uses: ./.github/actions/setup_nix with: githubToken: ${{ secrets.GITHUB_TOKEN }} @@ -44,7 +44,7 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - if: ${{ !inputs.self-hosted }} + - if: (!inputs.self-hosted) name: Login to Azure uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0 with: @@ -57,11 +57,11 @@ jobs: azure_resource_group=${{ env.azure_resource_group }} default_platform=${{ inputs.platform }} EOF - - if: ${{ !inputs.self-hosted }} + - if: (!inputs.self-hosted) name: Get credentials for CI cluster run: | just get-credentials - - if: ${{ !inputs.self-hosted }} + - if: (!inputs.self-hosted) name: Set sync environment run: | sync_ip=$(kubectl get svc sync -o jsonpath='{.status.loadBalancer.ingress[0].ip}') @@ -91,7 +91,7 @@ jobs: name: e2e_pod_logs-${{ inputs.platform }}-${{ inputs.test-name }} path: workspace/logs/export/logs - name: Notify teams channel of failure - if: ${{ failure() && github.event_name == 'schedule' && github.run_attempt == 1 }} + if: failure() && github.event_name == 'schedule' && github.run_attempt == 1 uses: ./.github/actions/post_to_teams with: webhook: ${{ secrets.TEAMS_CI_WEBHOOK }} diff --git a/.github/workflows/e2e_aks_runtime.yml b/.github/workflows/e2e_aks_runtime.yml index 0f383ba657..0c02a351c0 100644 --- a/.github/workflows/e2e_aks_runtime.yml +++ b/.github/workflows/e2e_aks_runtime.yml @@ -101,7 +101,7 @@ jobs: name: e2e_pod_logs-AKS-CLH-SNP-aks-runtime path: workspace/logs/export/logs - name: Notify teams channel of failure - if: ${{ failure() && github.event_name == 'schedule' && github.run_attempt == 1 }} + if: failure() && github.event_name == 'schedule' && github.run_attempt == 1 uses: ./.github/actions/post_to_teams with: webhook: ${{ secrets.TEAMS_CI_WEBHOOK }} diff --git a/.github/workflows/e2e_runtime-reproducibility.yml b/.github/workflows/e2e_runtime-reproducibility.yml index bbe99b4137..cd371886fd 100644 --- a/.github/workflows/e2e_runtime-reproducibility.yml +++ b/.github/workflows/e2e_runtime-reproducibility.yml @@ -58,7 +58,7 @@ jobs: name: ${{ matrix.build-target }}-${{ matrix.os }}-checksums path: ${{ matrix.build-target }}-${{ matrix.os }}-*_checksum.txt - name: Notify teams channel of failure - if: ${{ failure() && github.ref == 'main' && github.run_attempt == 1 }} + if: failure() && github.ref == 'main' && github.run_attempt == 1 uses: ./.github/actions/post_to_teams with: webhook: ${{ secrets.TEAMS_CI_WEBHOOK }} @@ -99,7 +99,7 @@ jobs: exit(1) print("All checksums were equal") - name: Notify teams channel of failure - if: ${{ failure() && github.ref == 'main' && github.run_attempt == 1 }} + if: failure() && github.ref == 'main' && github.run_attempt == 1 uses: ./.github/actions/post_to_teams with: webhook: ${{ secrets.TEAMS_CI_WEBHOOK }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 48b9e56ff6..4a6e5a33b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -393,7 +393,7 @@ jobs: needs: release steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - if: ${{ !matrix.platform.self-hosted }} + - if: (!matrix.platform.self-hosted) uses: ./.github/actions/setup_nix with: githubToken: ${{ secrets.GITHUB_TOKEN }} @@ -405,11 +405,11 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Login to Azure - if: ${{ !matrix.platform.self-hosted }} + if: (!matrix.platform.self-hosted) uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0 with: creds: ${{ secrets.CONTRAST_CI_INFRA_AZURE }} - - if: ${{ !matrix.platform.self-hosted }} + - if: (!matrix.platform.self-hosted) uses: nicknovitski/nix-develop@9be7cfb4b10451d3390a75dc18ad0465bed4932a # v1.2.1 - name: Create justfile.env run: | @@ -419,7 +419,7 @@ jobs: default_platform=${{ matrix.platform.name }} EOF - name: Get credentials for CI cluster - if: ${{ !matrix.platform.self-hosted }} + if: (!matrix.platform.self-hosted) run: | just get-credentials - name: E2E Test diff --git a/.github/workflows/require_label.yml b/.github/workflows/require_label.yml index c6ac1cf63a..f3c4e0abe6 100644 --- a/.github/workflows/require_label.yml +++ b/.github/workflows/require_label.yml @@ -23,7 +23,7 @@ jobs: documentation no changelog do-not-merge: - if: ${{ contains(github.event.pull_request.labels.*.name, 'do not merge') }} + if: contains(github.event.pull_request.labels.*.name, 'do not merge') runs-on: ubuntu-22.04 steps: - name: prevent merge diff --git a/.github/workflows/rpm_updates.yml b/.github/workflows/rpm_updates.yml index f490cbfe14..cd5b67799a 100644 --- a/.github/workflows/rpm_updates.yml +++ b/.github/workflows/rpm_updates.yml @@ -34,7 +34,7 @@ jobs: author: edgelessci token: ${{ secrets.NUNKI_CI_COMMIT_PUSH_PR }} - name: Notify teams channel of failure - if: ${{ failure() && github.ref == 'main' && github.run_attempt == 1 }} + if: failure() && github.ref == 'main' && github.run_attempt == 1 uses: ./.github/actions/post_to_teams with: webhook: ${{ secrets.TEAMS_CI_WEBHOOK }}