mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Launch 'make compare' only for pret repo and not fork (#858)
Fixes #856
This commit is contained in:
parent
39111486ab
commit
44203872c3
11
.github/workflows/main.yml
vendored
11
.github/workflows/main.yml
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user