Skip to content

Commit

Permalink
Fixed the exponential revert errors
Browse files Browse the repository at this point in the history
  • Loading branch information
5herlocked committed Oct 2, 2023
1 parent edb79d2 commit 602b806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/close-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
run: |
# Get Commits from this PR
TAG=PR_${{ github.event.pull_request.number }}
commits=$(git rev-list HEAD --grep=$TAG)
commits=$(git rev-list HEAD --grep=153 --max-count=1)
echo "commits: $commits"
# 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"
git revert $commits --no-edit || echo "Commit ${commit[0]} not reverted"

# for commit in $commits; do
# echo $commit
Expand Down

0 comments on commit 602b806

Please sign in to comment.