Skip to content

Commit

Permalink
Revert checking out relevant branches to main, but with force
Browse files Browse the repository at this point in the history
  • Loading branch information
AndesKrrrrrrrrrrr committed Jan 9, 2025
1 parent 4d338fd commit 3c83eff
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,10 @@ jobs:
run: |
set -euo pipefail
set -x
# Create branches locally from remote
for b in "$GITHUB_HEAD_REF" "$GITHUB_BASE_REF"; do
git rev-parse --verify "$b" || git branch {,origin/}"$b"
done
# Verify current sha
git rev-parse --verify "$GITHUB_SHA"
# Set git user for later commits
git checkout -f "$GITHUB_HEAD_REF"
git checkout -f "$GITHUB_BASE_REF"
git checkout -f "$GITHUB_SHA"
git config --global user.email "[email protected]"
git config --global user.name "CI Bot"
Expand Down

0 comments on commit 3c83eff

Please sign in to comment.