mirror of
https://github.com/MunGell/awesome-for-beginners.git
synced 2025-12-10 16:22:12 +00:00
Set the Build workflow to only commit if the README changes
If the README hasn't changed (e.g. a data.json reformat was done), it currently attempts to commit and fails, causing a workflow failure.
This commit is contained in:
parent
f72a441566
commit
ff5c514653
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@ -17,7 +17,12 @@ jobs:
|
||||
run: sudo pip install jinja2
|
||||
- name: Build
|
||||
run: python3 .github/scripts/render-readme.py
|
||||
- name: Check if file changed
|
||||
id: changedCheck
|
||||
continue-on-error: true
|
||||
run: git diff --exit-code README.md
|
||||
- name: Commit
|
||||
if: steps.changedCheck.outcome == 'failure'
|
||||
run: |
|
||||
git config --global user.name 'Shmavon Gazanchyan'
|
||||
git config --global user.email 'MunGell@users.noreply.github.com'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user