Skip to content

Commit

Permalink
Add check for empty commits
Browse files Browse the repository at this point in the history
  • Loading branch information
shobhitagarwal1612 committed Dec 15, 2024
1 parent 84bf2dd commit bff554e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/todo-to-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Commit and Push Changes
run: |
git add .
git commit -m "Automatically added GitHub issue links to TODOs"
git push origin main
git add -A
if [[ `git status --porcelain` ]]; then
git commit -m "Automatically added GitHub issue links to TODOs"
git push origin main
else
echo "No changes to commit"
fi

0 comments on commit bff554e

Please sign in to comment.