mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 17:07:04 +02:00
ci: Use official GH action for app token
This commit is contained in:
parent
1124366e18
commit
fbeaa67f7d
3 changed files with 21 additions and 21 deletions
14
.github/workflows/docs-release.yaml
vendored
14
.github/workflows/docs-release.yaml
vendored
|
@ -20,17 +20,17 @@ jobs:
|
|||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
steps:
|
||||
- name: Get GitHub API token
|
||||
id: get-app-token
|
||||
uses: getsentry/action-github-app-token@v2
|
||||
- name: "Generate Short Lived OAuth App Token (ghs_*)"
|
||||
uses: actions/create-github-app-token@v1.6.1
|
||||
id: app-token
|
||||
with:
|
||||
app_id: ${{ secrets.BJWS_APP_ID }}
|
||||
private_key: ${{ secrets.BJWS_APP_PRIVATE_KEY }}
|
||||
app-id: "${{ secrets.BJWS_APP_ID }}"
|
||||
private-key: "${{ secrets.BJWS_APP_PRIVATE_KEY }}"
|
||||
|
||||
- name: Checkout main branch
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ steps.get-app-token.outputs.token }}
|
||||
token: ${{ steps.app-token.outputs.token }}
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: actions/setup-python@v4
|
||||
|
@ -47,7 +47,7 @@ jobs:
|
|||
uses: peaceiris/actions-gh-pages@v3.9.3
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
with:
|
||||
github_token: ${{ steps.get-app-token.outputs.token }}
|
||||
github_token: ${{ steps.app-token.outputs.token }}
|
||||
publish_dir: ./site
|
||||
destination_dir: docs
|
||||
user_name: "bjw-s-bot[bot]"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue