aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorYoann Fievez <yoann.fievez@gmail.com>2021-11-04 20:17:17 +0100
committerGitHub <noreply@github.com>2021-11-04 15:17:17 -0400
commitb44a10a43a1fa4a558b4c593d0a610571ecb3a50 (patch)
treeda4558604a3f44ce294ff719cb4d5d660f4419a9 /.github
parentComment on the CooltrainerFAI bug (diff)
downloadpokeyellow-b44a10a43a1fa4a558b4c593d0a610571ecb3a50.tar.gz
pokeyellow-b44a10a43a1fa4a558b4c593d0a610571ecb3a50.tar.xz
pokeyellow-b44a10a43a1fa4a558b4c593d0a610571ecb3a50.zip
Update 'make compare' for no pret repo and add 'make' for fork (#339)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index a3fd4456..0e2472a4 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -29,6 +29,7 @@ jobs:
rm -rf rgbds
- name: Compare
+ if: ${{ github.repository_owner == 'pret' }}
run: |
make DEBUG=1 -j$(nproc) compare
if ! git diff-index --quiet HEAD --; then
@@ -37,6 +38,16 @@ jobs:
return 1
fi
+ - name: Make
+ if: ${{ github.repository_owner != 'pret' }}
+ run: |
+ make -j$(nproc)
+ if ! git diff-index --quiet HEAD --; then
+ echo 'Uncommitted changes detected:'
+ git diff-index HEAD --
+ return 1
+ fi
+
- name: Discord webhook
if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
env: