Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
furknyavuz committed Mar 21, 2022
1 parent dcbb8b1 commit a8d957a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/cron-dependency-checker-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,18 @@ jobs:
- name: Npm Outdated
run: npm run outdated

- name: Check for Changes
run: |
if git diff --exit-code; then
echo "changes_exist=false" >> $GITHUB_ENV
else
echo "changes_exist=true" >> $GITHUB_ENV
fi
- name: Git Commit and Push
if: ${{ env.changes_exist == 'true' }}
run: |
git config --global user.email "furknyavuz@gmail.com"
git config --global user.name "Furkan Yavuz"
git config --global user.email "98660390+oth-service-user@users.noreply.github.com"
git config --global user.name "OTH Service User"
git commit -am "Workflow/dependency check"
git push

0 comments on commit a8d957a

Please sign in to comment.