Skip to content

Commit

Permalink
FIX-WIP: fixing issue with commit and push by bot
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienGilliard authored Sep 16, 2024
1 parent 0270db5 commit e4a8f17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/evaluate_tree_packing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add README.md
git commit -m "Update badges in README"
git commit -m "Update badges in README" || echo "No changes to commit"
if ($env:GITHUB_HEAD_REF) {
# For pull requests, use the source branch (GITHUB_HEAD_REF)
$branch_name = $env:GITHUB_HEAD_REF
Expand All @@ -72,5 +72,5 @@ jobs:
$branch_name = $env:GITHUB_REF -replace 'refs/heads/', ''
}
git fetch origin
git pull origin $branch_name --rebase
git rebase origin/$branch_name || git rebase --abort
git push origin HEAD:$branch_name

0 comments on commit e4a8f17

Please sign in to comment.