From 7c13d2d202684af84cd1ab7292475cdcb766bbc0 Mon Sep 17 00:00:00 2001 From: Johan Dahlbom Date: Wed, 6 Dec 2023 13:49:28 +0100 Subject: [PATCH] Update test checkout reference (#835) * Update tests.yml * subonly --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b6ddb478..8f5b2d93 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,7 +31,7 @@ jobs: - name: "Checkout" uses: actions/checkout@v4 with: - ref: ${{github.event.pull_request.head.ref}} + ref: ${{github.event.pull_request.head.sha}} repository: ${{github.event.pull_request.head.repo.full_name}} fetch-depth: 0 @@ -110,7 +110,7 @@ jobs: - name: "Checkout" uses: actions/checkout@v4 with: - ref: ${{github.event.pull_request.head.ref}} + ref: ${{github.event.pull_request.head.sha}} repository: ${{github.event.pull_request.head.repo.full_name}} fetch-depth: 0 @@ -146,4 +146,4 @@ jobs: - name: "Run Environment Cleanup" shell: pwsh run: | - ./src/tests/Pester.ps1 -CleanupEnvironment $true \ No newline at end of file + ./src/tests/Pester.ps1 -CleanupEnvironment $true