From 7791d81b645800af359378b611a729cc8e7e288e Mon Sep 17 00:00:00 2001 From: Daniel Schmidt Date: Mon, 14 Aug 2023 12:12:16 +0200 Subject: [PATCH] chore: checkout branch myself --- .github/workflows/registry-docs-pr-based.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/registry-docs-pr-based.yml b/.github/workflows/registry-docs-pr-based.yml index 606c8d973a..007bd4f93e 100644 --- a/.github/workflows/registry-docs-pr-based.yml +++ b/.github/workflows/registry-docs-pr-based.yml @@ -190,13 +190,14 @@ jobs: - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 with: repository: ${{ inputs.repository }} - ref: d-cdktf-docs-${{ github.run_id }}-${{ github.run_number }} fetch-depth: 0 # complete checkout - name: Create Pull Request run: | git config --global user.email "${{ inputs.gitEmail }}" git config --global user.name "${{ inputs.gitUser }}" + git fetch + git checkout d-cdktf-docs-${{ github.run_id }}-${{ github.run_number }} git pull origin d-cdktf-docs-${{ github.run_id }}-${{ github.run_number }} --rebase HAS_COMMITS=$(git log --oneline origin/main..HEAD | wc -l)