mirror of
https://github.com/MunGell/awesome-for-beginners.git
synced 2025-12-10 16:22:12 +00:00
Merge pull request #1798 from MunGell/build-workflow-improve
Improve the build workflow
This commit is contained in:
commit
55940aeb2d
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- 'data.json'
|
- 'data.json'
|
||||||
- '.github/tpl.md'
|
- '.github/README-template.j2'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -17,7 +17,12 @@ jobs:
|
|||||||
run: sudo pip install jinja2
|
run: sudo pip install jinja2
|
||||||
- name: Build
|
- name: Build
|
||||||
run: python3 .github/scripts/render-readme.py
|
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
|
- name: Commit
|
||||||
|
if: steps.changedCheck.outcome == 'failure'
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name 'Shmavon Gazanchyan'
|
git config --global user.name 'Shmavon Gazanchyan'
|
||||||
git config --global user.email 'MunGell@users.noreply.github.com'
|
git config --global user.email 'MunGell@users.noreply.github.com'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user