Skip to content

Commit

Permalink
CI: Actually checkout PR merge commit?
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 12, 2024
1 parent 186d5e0 commit 3e48b10
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/dev-build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,16 @@ jobs:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
ref: "refs/pull/${{ github.event.number }}/merge"
token: ${{ secrets.UESDK_PULLER || github.token }}
submodules: recursive
persist-credentials: false

# Important security check: https://github.com/actions/checkout/issues/518
- name: Sanity check
run: |
[[ "$(git rev-parse 'HEAD^')" == "${{ github.event.pull_request.head.sha }}" ]]
- 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
2 changes: 2 additions & 0 deletions .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
with:
token: ${{ secrets.UESDK_PULLER }}
submodules: recursive
persist-credentials: false

- 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 All @@ -29,6 +30,7 @@ jobs:
with:
repository: praydog/uevr-frontend
path: frontend
persist-credentials: false

- name: Set up dotnet
uses: actions/setup-dotnet@v1
Expand Down

0 comments on commit 3e48b10

Please sign in to comment.