From 06c0e8c1614482c5ffbd7cec82493da024d965de Mon Sep 17 00:00:00 2001 From: Matt Stauffer Date: Tue, 12 Mar 2024 10:30:31 -0400 Subject: [PATCH] Fix the Github event name ref --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 86d6f7e..a48e48c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: test: name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }} runs-on: ubuntu-latest - if: contains(github.event.pull_request.labels.*.name, 'safe to test') || (("${GITHUB_EVENT_NAME}" == "push" || "${GITHUB_EVENT_NAME}" == "workflow_dispatch") && github.ref_name == "main") + if: contains(github.event.pull_request.labels.*.name, 'safe to test') || ((github.event_name == "push" || github.event_name == "workflow_dispatch") && github.ref_name == "main") strategy: max-parallel: 1