From fd42e02af4249c4449c80298434bc5b7a8ba89a7 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Sun, 7 Mar 2021 17:35:56 -0500 Subject: [PATCH] Move webhook event check to workflow --- .github/calcrom/webhook.sh | 5 ----- .github/workflows/build.yml | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/calcrom/webhook.sh b/.github/calcrom/webhook.sh index a0303c2b3..2a3015969 100755 --- a/.github/calcrom/webhook.sh +++ b/.github/calcrom/webhook.sh @@ -1,10 +1,5 @@ #!/bin/bash -ex -# Only run this script if it's the master branch build. -if [[ "$GITHUB_REF" != "refs/heads/master" || "$GITHUB_EVENT_NAME" != "push" ]]; then - exit 0 -fi - build_name=$1 map_file=$build_name.map if [ ! -f $map_file ]; then diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 220b14da3..2b1b158d0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,4 +37,6 @@ jobs: run: make -j${nproc} modern - name: Webhook + shell: bash + if: ${{ github.event_name == 'push' }} run: sh .github/calcrom/webhook.sh pokeemerald