Skip to content

Commit cadb85f

Browse files
committed
ci: only update READMEs if there are actual changes
1 parent 35f254a commit cadb85f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/generate-docs.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
platform: [CSES, France-IOI]
15+
max-parallel: 1
1516

1617
steps:
1718
- name: Checkout repository
@@ -31,7 +32,13 @@ jobs:
3132
run: |
3233
python scripts/${{ matrix.platform }}/generate.py
3334
35+
- name: Check for changes in the directory
36+
id: check_changes
37+
run: |
38+
git diff --exit-code solutions/${{ matrix.platform }} || echo "changes"
39+
3440
- name: Commit and push changes
41+
if: steps.check_changes.outputs.changes == 'changes'
3542
run: |
3643
git config user.name 'GitHub Actions'
3744
git config user.email '[email protected]'

0 commit comments

Comments
 (0)