From 27d0b4df2cca918ff06915e51995955632517089 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 2 Jun 2026 22:53:56 +0300 Subject: fix: publish preview manifest with bot token --- .github/workflows/preview.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to '.github/workflows') 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: -- cgit v1.2.3