diff --git a/.github/calcrom/webhook.sh b/.github/calcrom/webhook.sh index a0303c2b31..2a3015969e 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 220b14da33..2b1b158d09 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