workflow update
parent
6c726a373f
commit
a2d01337d3
|
@ -22,6 +22,7 @@ jobs:
|
||||||
git diff --name-only --diff-filter=A $(git tag | tail -n 1) @ . | grep .yaml | tee .new-additions
|
git diff --name-only --diff-filter=A $(git tag | tail -n 1) @ . | grep .yaml | tee .new-additions
|
||||||
|
|
||||||
- name: Commit files
|
- name: Commit files
|
||||||
|
if: steps.new-additions.outputs.changes > 0
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
|
@ -29,6 +30,7 @@ jobs:
|
||||||
git commit -m "Auto Generated New Template Addition List [$(date)] :robot:" -a
|
git commit -m "Auto Generated New Template Addition List [$(date)] :robot:" -a
|
||||||
|
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
|
if: steps.new-additions.outputs.changes > 0
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in New Issue