From 1639a2c08120d359d18e2247b3ce3b275c521297 Mon Sep 17 00:00:00 2001 From: Kevin Deldycke Date: Mon, 4 Mar 2024 14:04:04 +0400 Subject: [PATCH] Bypass checkout action --- .github/workflows/docs.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 0b91718..8bed1a1 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -43,11 +43,14 @@ jobs: run: | echo "PR branch ID: ${{ steps.template_sync.outputs.pr_branch }}" - - name: Checkout new template sync branch - uses: actions/checkout@v4.1.1 - with: - token: ${{ secrets.WORKFLOW_UPDATE_GITHUB_PAT || secrets.GITHUB_TOKEN }} - ref: ${{ steps.template_sync.outputs.pr_branch }} + #- name: Checkout new template sync branch + # uses: actions/checkout@v4.1.1 + # with: + # token: ${{ secrets.WORKFLOW_UPDATE_GITHUB_PAT || secrets.GITHUB_TOKEN }} + # ref: ${{ steps.template_sync.outputs.pr_branch }} + + - run: | + git checkout ${{ steps.template_sync.outputs.pr_branch }} # XXX We cannot rely on peter-evans/create-pull-request to manage the push of the new commit to the PR, as it # ends up with a: "Unexpected error: fatal: could not open '.git/COMMIT_EDITMSG': Permission denied".