Skip to content

Commit

Permalink
CI: Log previous commits for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 12, 2024
1 parent 9603fa0 commit 2f4c211
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/dev-build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ jobs:
if : ${{ github.event_name == 'pull_request_target' }}
shell: pwsh
run: |
$commits = git log -n 2 --pretty=format:%H
$commits = git log -n 4 --pretty=format:%H
$previous_commit = $commits[1]
echo $commits
if ($previous_commit -ne "${{ github.event.pull_request.head.sha }}") {
throw "The pull request head commit has changed since the event was triggered."
}
Expand Down

0 comments on commit 2f4c211

Please sign in to comment.