From 94af2395f6f8d2195723aa9304c051ee6a1a0040 Mon Sep 17 00:00:00 2001 From: Eric Deandrea Date: Mon, 13 Jul 2026 12:46:20 -0400 Subject: [PATCH] fix: update version-tests workflow to use create-github-app-token for PR operations Signed-off-by: Eric Deandrea --- .github/workflows/version-tests.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version-tests.yml b/.github/workflows/version-tests.yml index 950f2d8..3db3acb 100644 --- a/.github/workflows/version-tests.yml +++ b/.github/workflows/version-tests.yml @@ -133,11 +133,20 @@ jobs: - name: Copy output markdown to docs run: find docling-testing/docling-version-tests/${{ env.OUTPUT_DIR }} -name 'results.md' -exec cp -r '{}' docs/src/doc/docs/includes/docling-serve/serve-compatibility.md ';' + - name: Generate fresh token for PR + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 + id: pr-token + with: + app-id: ${{ vars.DOCLING_JAVA_CI_APP_ID }} + private-key: ${{ secrets.DOCLING_JAVA_CI_PRIVATE_KEY }} + permission-contents: write + permission-pull-requests: write + - name: Create docs PR id: create-pr uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 with: - token: ${{ steps.app-token.outputs.token }} + token: ${{ steps.pr-token.outputs.token }} add-paths: docs/src/doc/docs/includes/docling-serve/serve-compatibility.md commit-message: "docs: Update docling-serve compatibility table (from ${{ github.workflow }} run # ${{ github.run_number }})" branch: update-serve-compatibility/sourceref @@ -156,5 +165,5 @@ jobs: - name: Merge PR if: (steps.create-pr.outputs.pull-request-operation == 'created') && steps.create-pr.outputs.pull-request-number env: - GH_TOKEN: ${{ steps.app-token.outputs.token }} + GH_TOKEN: ${{ steps.pr-token.outputs.token }} run: gh pr merge --merge --admin --delete-branch "${{ steps.create-pr.outputs.pull-request-url }}"