diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-03-07 17:35:56 -0500 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2021-03-07 17:35:56 -0500 |
commit | fd42e02af4249c4449c80298434bc5b7a8ba89a7 (patch) | |
tree | b54594354a4ab9ed42d1753df51530d02a9566f9 | |
parent | 2bba2ce1a1ab20d9c7a1ac8826929cf67da5659e (diff) |
Move webhook event check to workflow
-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 |