diff options
| -rw-r--r-- | .github/workflows/preview.yml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 1d2fe432..dfe9cd87 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -232,7 +232,7 @@ jobs: with: ref: master fetch-depth: 0 - ssh-key: ${{ secrets.PREVIEW_DEPLOY_KEY }} + persist-credentials: false - name: Verify built commit is still current master run: | @@ -299,12 +299,14 @@ jobs: --retain 30 - name: Commit preview manifest + env: + KANGAL_GITHUB_TOKEN: ${{ secrets.KANGAL_GITHUB_TOKEN }} run: | - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config user.name "kangal-bot" + git config user.email "285672167+kangal-bot@users.noreply.github.com" git add website/preview.json git diff --cached --quiet || git commit -m "docs: update preview manifest" - git push origin HEAD:master + git push "https://x-access-token:${KANGAL_GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" HEAD:master - name: Prune old preview prereleases env: |
