From 4ff5c6878122220f588433fa22cc8872797f1749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Rausell=20Guiard?= <33221237+AlvaroRausell@users.noreply.github.com> Date: Fri, 6 Jun 2025 09:33:01 +0100 Subject: [PATCH 1/4] Use `GITHUB_TOKEN` intead of PAT --- .github/workflows/update-documentation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-documentation.yml b/.github/workflows/update-documentation.yml index d74d970d5..7be3f6130 100644 --- a/.github/workflows/update-documentation.yml +++ b/.github/workflows/update-documentation.yml @@ -25,7 +25,7 @@ jobs: - name: Create a PR for Documentation id: push_image_info env: - GITHUB_TOKEN: ${{ secrets.PAT }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -e echo "Start." From 2f6728de6210facdc36ac03ca7584f1b30e311c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Rausell=20Guiard?= <33221237+AlvaroRausell@users.noreply.github.com> Date: Fri, 6 Jun 2025 09:38:33 +0100 Subject: [PATCH 2/4] Add custom branch for testing --- .github/workflows/update-documentation.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-documentation.yml b/.github/workflows/update-documentation.yml index 7be3f6130..0541266b1 100644 --- a/.github/workflows/update-documentation.yml +++ b/.github/workflows/update-documentation.yml @@ -3,6 +3,7 @@ on: push: branches: - main + - arausell/gh-token workflow_dispatch: jobs: From 09bd96b3ad30d9201f45f9fcd0be5fddf4927ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Rausell=20Guiard?= <33221237+AlvaroRausell@users.noreply.github.com> Date: Fri, 6 Jun 2025 09:46:51 +0100 Subject: [PATCH 3/4] nothing to see here --- .github/workflows/update-documentation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-documentation.yml b/.github/workflows/update-documentation.yml index 0541266b1..b99efb086 100644 --- a/.github/workflows/update-documentation.yml +++ b/.github/workflows/update-documentation.yml @@ -13,7 +13,7 @@ jobs: permissions: contents: write pull-requests: write - if: "github.ref == 'refs/heads/main'" + # if: "github.ref == 'refs/heads/main'" steps: - uses: actions/checkout@v4 From 5f9824c9f647900df8e3c1b7e60cbf9844faed9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Rausell=20Guiard?= <33221237+AlvaroRausell@users.noreply.github.com> Date: Fri, 6 Jun 2025 09:47:35 +0100 Subject: [PATCH 4/4] Back to normality --- .github/workflows/update-documentation.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/update-documentation.yml b/.github/workflows/update-documentation.yml index b99efb086..7be3f6130 100644 --- a/.github/workflows/update-documentation.yml +++ b/.github/workflows/update-documentation.yml @@ -3,7 +3,6 @@ on: push: branches: - main - - arausell/gh-token workflow_dispatch: jobs: @@ -13,7 +12,7 @@ jobs: permissions: contents: write pull-requests: write - # if: "github.ref == 'refs/heads/main'" + if: "github.ref == 'refs/heads/main'" steps: - uses: actions/checkout@v4