aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2022-06-22 20:09:50 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2022-06-22 20:09:50 -0400
commitb6ad40f90ea1d3adaba53e3c5bd4354c8a40f67f (patch)
treebe35b1bc86938fa076905e46ae7d676625640495 /.github
parent`cp MR_FUJIS_HOUSE` -> `cp POKEMON_TOWER_7F + 1` (diff)
downloadpokeyellow-b6ad40f90ea1d3adaba53e3c5bd4354c8a40f67f.tar.gz
pokeyellow-b6ad40f90ea1d3adaba53e3c5bd4354c8a40f67f.tar.xz
pokeyellow-b6ad40f90ea1d3adaba53e3c5bd4354c8a40f67f.zip
Automatically upload .sym files to a 'symbols' branch
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index c1052183..13cc4e5f 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -54,3 +54,24 @@ jobs:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
run: |
.github/webhook.sh
+
+ - name: Checkout symbols
+ if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
+ uses: actions/checkout@master
+ with:
+ path: symbols
+ ref: symbols
+
+ - name: Move symbols
+ if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
+ run: |
+ cp -v *.sym symbols/
+
+ - name: Update symbols
+ if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
+ uses: EndBug/add-and-commit@v7
+ with:
+ branch: symbols
+ cwd: "./symbols"
+ add: "*.sym"
+ message: ${{ github.event.commits[0].message }}