From c8825d57f3f1aae96672343abae4b116b20438ae Mon Sep 17 00:00:00 2001 From: Dan Hurwit Date: Mon, 12 Feb 2024 13:57:34 -0500 Subject: [PATCH] fetch depth 0 --- .github/workflows/pr.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index fff4ff8..395f391 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -36,6 +36,8 @@ jobs: - uses: actions/checkout@v3 with: token: ${{ secrets.GITHUB_TOKEN }} + ref: ${{ github.event.pull_request.head.ref }} + fetch-depth: 0 - uses: actions/setup-go@v4 with: go-version: '1.20.5' # tfplugindocs requires go >= 1.18 @@ -53,7 +55,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - git switch -c ${{ steps.extract_branch.outputs.branch }} rm -r docs /tmp/tfplugindocs - name: Commit And Push