diff options
-rwxr-xr-x | .github/calcrom/webhook.sh | 5 | ||||
-rw-r--r-- | .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 |