Skip to content

Commit

Permalink
CI: Fix command for powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 12, 2024
1 parent 3e48b10 commit 4843791
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/dev-build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,14 @@ jobs:

# Important security check: https://github.com/actions/checkout/issues/518
- name: Sanity check
if : ${{ github.event_name == 'pull_request_target' }}
shell: pwsh
run: |
[[ "$(git rev-parse 'HEAD^')" == "${{ github.event.pull_request.head.sha }}" ]]
$previous_commit = git rev-parse 'HEAD^'
if ($previous_commit -ne "${{ github.event.pull_request.head.sha }}") {
throw "The pull request head commit has changed since the event was triggered."
}
- name: Configure CMake
run: cmake -S ${{github.workspace}} -B ${{github.workspace}}/build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

Expand Down

0 comments on commit 4843791

Please sign in to comment.