From b5124cffc5cd8d04b3fb8efa71d71baadd7a8538 Mon Sep 17 00:00:00 2001 From: Marcus Hert Da Coregio Date: Fri, 3 May 2024 11:18:50 -0300 Subject: [PATCH] Require token --- .github/workflows/update-antora-ui-spring.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-antora-ui-spring.yml b/.github/workflows/update-antora-ui-spring.yml index 4759d42..99b1735 100644 --- a/.github/workflows/update-antora-ui-spring.yml +++ b/.github/workflows/update-antora-ui-spring.yml @@ -8,6 +8,10 @@ on: required: false default: 'docs-build' type: string + secrets: + token: + description: Token to use the GH CLI and to Open PRs + required: true jobs: update-antora-ui-spring: @@ -28,7 +32,7 @@ jobs: echo tag_name=$(gh api /repos/spring-io/antora-ui-spring/releases/latest | jq -r '.tag_name') >> $GITHUB_OUTPUT shell: bash env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.token }} - name: Replace Version uses: mikefarah/yq@v4.43.1 id: replace @@ -38,6 +42,7 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v6 with: + token: ${{ secrets.token }} title: Update Antora UI Spring to ${{ steps.latest.outputs.tag_name }} commit-message: Update Antora UI Spring to ${{ steps.latest.outputs.tag_name }} delete-branch: true