From 8136bdd4b063fcfc28b64a5f58897344fb78c2d6 Mon Sep 17 00:00:00 2001 From: Zach Trocinski Date: Mon, 21 Oct 2024 19:37:40 -0500 Subject: [PATCH] Fix git reference --- .github/workflows/validate-queries.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate-queries.yml b/.github/workflows/validate-queries.yml index 1280ac2b..97bf870f 100644 --- a/.github/workflows/validate-queries.yml +++ b/.github/workflows/validate-queries.yml @@ -50,12 +50,12 @@ jobs: - name: Checkout repository uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 with: - ref: "refs/pull/${{ github.event.number }}/merge" + ref: "${{ github.event.pull_request.head.sha }}" fetch-depth: 2 - name: Sanity Check run: | - [[ "$(git rev-parse 'HEAD^2')" == "${{ github.event.pull_request.head.sha }}" ]] + [[ "$(git rev-parse 'HEAD')" == "${{ github.event.pull_request.head.sha }}" ]] || exit 1 - name: Azure login (OIDC) uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0