Skip to content

Commit 9d98abe

Browse files
committed
Check nothing to commit on structure
1 parent acb388b commit 9d98abe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/structure.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
structure:
1010
runs-on: ubuntu-latest
1111
strategy:
12+
fail-fast: false
1213
matrix:
1314
moodle_branch: ['master', 'MOODLE_403_STABLE', 'MOODLE_402_STABLE', 'MOODLE_401_STABLE', 'MOODLE_400_STABLE', 'MOODLE_311_STABLE']
1415
env:
@@ -58,7 +59,14 @@ jobs:
5859
git fetch -q origin
5960
php structure/get_all_ws_structures.php $GITHUB_WORKSPACE/moodle > structure/${{ env.MOODLE_BRANCH }}.ts
6061
git add structure/*.ts
62+
git diff --cached --exit-code
63+
if [ $? -eq 0 ]; then
64+
# Nothing to commit
65+
exit 0
66+
fi
67+
6168
git commit -m "[auto-generated] Update structure file for ${{ env.MOODLE_BRANCH }}"
69+
6270
git pull -r
6371
git push
6472
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)