diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4449866c2..cc305eb91 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -549,7 +549,7 @@ jobs: trigger-k8s-deploy: name: Trigger k8s deploy - if: github.head_ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' runs-on: ubuntu-22.04 needs: build-docker steps: @@ -583,7 +583,7 @@ jobs: trigger-ee-updates: name: Trigger Ephemeral Environment updates - if: github.head_ref != 'refs/heads/main' && contains(github.event.pull_request.labels.*.name, 'ephemeral-environment') + if: github.ref != 'refs/heads/main' && contains(github.event.pull_request.labels.*.name, 'ephemeral-environment') runs-on: ubuntu-24.04 needs: build-docker steps: