Skip to content

Commit

Permalink
Fixed exponential revert problem
Browse files Browse the repository at this point in the history
  • Loading branch information
5herlocked committed Oct 2, 2023
1 parent 0afdec4 commit edb79d2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/close-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ jobs:
# Revert Commits or Log that no change was made
git config --local user.email "dev@null"
git config --local user.name "Conformitron Bot"

git revert ${commit[0]} --no-edit || echo "Commit ${commit[0]} not reverted"

for commit in $commits; do
echo $commit
git revert $commit --no-edit || echo "Commit $commit not reverted"
done
# for commit in $commits; do
# echo $commit
# git revert $commit --no-edit || echo "Commit $commit not reverted"
# done
git push

0 comments on commit edb79d2

Please sign in to comment.