From 4933394013385d9da5de8d27300ad9975f7c5662 Mon Sep 17 00:00:00 2001 From: Regalijan <72576136+Regalijan@users.noreply.github.com> Date: Sun, 29 Oct 2023 14:00:40 -0400 Subject: [PATCH 1/2] Only run push step on push events --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2552dd7..1c66938 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -52,6 +52,7 @@ jobs: mix compile Push: + if: github.event == 'push' needs: [Bot, API] runs-on: ubuntu-latest From fceaa08ae29a00e19e668eae001d4cbaaa5ed150 Mon Sep 17 00:00:00 2001 From: Regalijan <72576136+Regalijan@users.noreply.github.com> Date: Sun, 29 Oct 2023 14:15:09 -0400 Subject: [PATCH 2/2] Check if pr check is needed instead of pr event Event check does not work when workflow is executed by another workflow --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1c66938..9995daf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -52,7 +52,7 @@ jobs: mix compile Push: - if: github.event == 'push' + if: needs.pr-check.outputs.number != 'null' needs: [Bot, API] runs-on: ubuntu-latest