summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-08-11 17:09:03 -0400
committerGriffinR <griffin.g.richards@gmail.com>2021-08-11 17:09:03 -0400
commit5098fbf7bbd107a58106dac1426cf960dc58a1a0 (patch)
tree536b99dc5533cf67cb52ac498e4f68902f8dce0c
parent2fb7440315217b95600179fa89b4d7f3eb762421 (diff)
Fix symbols branch commit message, limit to upstream
-rw-r--r--.github/workflows/build.yml11
1 files changed, 6 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5b904ae9f..f7ef4f389 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -19,6 +19,7 @@ jobs:
uses: actions/checkout@master
- name: Checkout syms
+ if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
uses: actions/checkout@master
with:
path: symbols
@@ -52,7 +53,7 @@ jobs:
run: make -j${nproc} all
- name: Webhook
- if: ${{ github.event_name == 'push' }}
+ if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
env:
CALCROM_DISCORD_WEBHOOK_USERNAME: OK
CALCROM_DISCORD_WEBHOOK_AVATAR_URL: https://i.imgur.com/38BQHdd.png
@@ -60,16 +61,16 @@ jobs:
run: sh .github/calcrom/webhook.sh pokeemerald
- name: Move symfiles
- if: ${{ github.event_name == 'push' }}
+ if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
run: |
cp -v *.sym symbols/
- export GITHUB_COMMIT_MSG="$( git log --format=%s ${GITHUB_SHA} )"
+ echo "SYMBOLS_COMMIT_MSG=$( git log --format=%s ${GITHUB_SHA} )" >> $GITHUB_ENV
- name: Update symfiles
- if: ${{ github.event_name == 'push' }}
+ if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
uses: EndBug/add-and-commit@v7
with:
branch: symbols
cwd: "./symbols"
add: "*.sym"
- message: $GITHUB_COMMIT_MSG
+ message: ${{ env.SYMBOLS_COMMIT_MSG }}