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 }}"