Skip to content

Commit

Permalink
Require token
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusdacoregio committed May 3, 2024
1 parent a91f1a0 commit b5124cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/update-antora-ui-spring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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/[email protected]
id: replace
Expand All @@ -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
Expand Down

0 comments on commit b5124cf

Please sign in to comment.