From c0799c93da9df21214b96e33bc906c7cb8484463 Mon Sep 17 00:00:00 2001 From: Charles Treatman Date: Mon, 18 Sep 2023 10:55:41 -0500 Subject: [PATCH] chore: check out PR/branch code every time in acctest workflow In an earlier PR, I missed that the acctest workflow checks out code _both_ in the build job and in the test job. I updated the build job to check out PR code, but the test job was still checking out code from the base branch. --- .github/workflows/acctest.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/acctest.yml b/.github/workflows/acctest.yml index e30fe867a..0edef9b49 100644 --- a/.github/workflows/acctest.yml +++ b/.github/workflows/acctest.yml @@ -75,7 +75,9 @@ jobs: steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} - name: Set up Go uses: actions/setup-go@v4