Skip to content

Commit 4f4cae8

Browse files
committed
Add token for deployments
1 parent 1344c1c commit 4f4cae8

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/documentation.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on: # yamllint disable-line rule:truthy
1212
description: "The component to deploy the documentation for"
1313
required: true
1414
type: "string"
15+
token:
16+
description: "The token to use to push to the docs repository"
17+
required: true
18+
type: "string"
1519

1620
jobs:
1721
documentation:
@@ -42,7 +46,7 @@ jobs:
4246
uses: "actions/checkout@v6"
4347
with:
4448
repository: "phpDocumentor/docs"
45-
token: "${{ secrets.BOT_TOKEN }}"
49+
token: "${{ inputs.token }}"
4650
path: "docs"
4751

4852
- name: "Download"
@@ -64,5 +68,5 @@ jobs:
6468
uses: "ad-m/github-push-action@master"
6569
with:
6670
directory: "docs"
67-
github_token: "${{ secrets.BOT_TOKEN }}"
71+
github_token: "${{ inputs.token }}"
6872
repository: "phpDocumentor/docs"

0 commit comments

Comments
 (0)