ci(nix): checkout merge commit of pull request
Signed-off-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
parent
e03870d3f2
commit
abe18fb144
1 changed files with 9 additions and 0 deletions
9
.github/workflows/nix.yml
vendored
9
.github/workflows/nix.yml
vendored
|
@ -61,8 +61,17 @@ jobs:
|
|||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Get merge commit
|
||||
if: ${{ github.event_name == 'pull_request_target' }}
|
||||
id: merge-commit
|
||||
uses: ./.github/actions/get-merge-commit.yml
|
||||
with:
|
||||
pull-request-id: ${{ github.event.pull_request.id }}
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ steps.merge-commit.outputs.merge-commit-sha || github.sha }}
|
||||
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v16
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue