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
|
rm -rf rgbds
|
||||||
|
|
||||||
- name: Compare
|
- name: Compare
|
||||||
|
if: ${{ github.repository_owner == 'pret' }}
|
||||||
run: |
|
run: |
|
||||||
make DEBUG=1 -j$(nproc) compare
|
make DEBUG=1 -j$(nproc) compare
|
||||||
if ! git diff-index --quiet HEAD --; then
|
if ! git diff-index --quiet HEAD --; then
|
||||||
@ -37,6 +38,16 @@ jobs:
|
|||||||
return 1
|
return 1
|
||||||
fi
|
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
|
- name: Discord webhook
|
||||||
if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
|
if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user