Skip to content

Commit

Permalink
🐳 chore: 更新工作流
Browse files Browse the repository at this point in the history
  • Loading branch information
imsyy committed Jun 13, 2024
1 parent 18e79da commit dd026fd
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/check-dependency-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,17 @@ jobs:
ncu -u
npm install
- name: Commit changes
- name: Check for changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m 'chore: update dependencies'
git pull --rebase origin master
git push
if [ -n "$(git status --porcelain)" ]; then
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m 'chore: update dependencies'
git pull --rebase origin master
git push
else
echo "No changes to commit"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit dd026fd

Please sign in to comment.