Skip to content

Commit

Permalink
Updating logic in machete.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mjovanc committed Nov 19, 2024
1 parent c4ad13e commit a2d35c1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/machete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,15 @@ jobs:
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
git add .
git commit -m "Fix unused dependencies using cargo machete"
git push --set-upstream origin $BRANCH_NAME
# Check if there are changes to commit
if [[ -n "$(git status --porcelain)" ]]; then
git add .
git commit -m "Fix unused dependencies using cargo machete"
git push --set-upstream origin $BRANCH_NAME
else
echo "No changes to commit."
fi
- name: Create a Pull Request
uses: peter-evans/create-pull-request@v4
Expand Down

0 comments on commit a2d35c1

Please sign in to comment.