workflow update

patch-1
sandeep 2022-02-18 12:08:36 +05:30
parent 6c726a373f
commit a2d01337d3
1 changed files with 2 additions and 0 deletions

View File

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