Move webhook event check to workflow
This commit is contained in:
parent
2bba2ce1a1
commit
fd42e02af4
2 changed files with 2 additions and 5 deletions
5
.github/calcrom/webhook.sh
vendored
5
.github/calcrom/webhook.sh
vendored
|
@ -1,10 +1,5 @@
|
||||||
#!/bin/bash -ex
|
#!/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
|
build_name=$1
|
||||||
map_file=$build_name.map
|
map_file=$build_name.map
|
||||||
if [ ! -f $map_file ]; then
|
if [ ! -f $map_file ]; then
|
||||||
|
|
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -37,4 +37,6 @@ jobs:
|
||||||
run: make -j${nproc} modern
|
run: make -j${nproc} modern
|
||||||
|
|
||||||
- name: Webhook
|
- name: Webhook
|
||||||
|
shell: bash
|
||||||
|
if: ${{ github.event_name == 'push' }}
|
||||||
run: sh .github/calcrom/webhook.sh pokeemerald
|
run: sh .github/calcrom/webhook.sh pokeemerald
|
||||||
|
|
Loading…
Reference in a new issue