commit 082756dd81bdfd59a2ef95e76bc6e436de74254a
parent 14410e2618195eeb3fa70b743078e9463730b91e
Author: Amit Dutta <mail@amit.is-a.dev>
Date: Tue, 18 Aug 2026 19:02:52 +0530
Update GitHub Actions bot configuration
Diffstat:
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
@@ -20,7 +20,7 @@ concurrency:
jobs:
sync-hf:
runs-on: ubuntu-latest
- if: github.actor != 'github-actions[bot]'
+ if: github.actor != 'bot-for-notamitgamer[bot]'
steps:
- name: Checkout GitHub Repo
uses: actions/checkout@v7
@@ -48,8 +48,8 @@ jobs:
git lfs track "*.odt"
git add .gitattributes
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
+ git config user.name "bot-for-notamitgamer[bot]"
+ git config user.email "bot-for-notamitgamer[bot]@users.noreply.github.com"
git add .
@@ -59,12 +59,20 @@ jobs:
build:
runs-on: ubuntu-latest
- if: github.actor != 'github-actions[bot]'
+ if: github.actor != 'bot-for-notamitgamer[bot]'
steps:
+ - name: Generate GitHub App Token
+ id: app-token
+ uses: actions/create-github-app-token@v1
+ with:
+ app-id: ${{ secrets.APP_ID }}
+ private-key: ${{ secrets.APP_PRIVATE_KEY }}
+
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
+ token: ${{ steps.app-token.outputs.token }}
- name: Setup Python
uses: actions/setup-python@v7
@@ -88,8 +96,8 @@ jobs:
- name: Commit generated changelog to repo
run: |
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
+ git config user.name "bot-for-notamitgamer[bot]"
+ git config user.email "bot-for-notamitgamer[bot]@users.noreply.github.com"
git add CHANGELOG.md
@@ -124,7 +132,7 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
- if: github.actor != 'github-actions[bot]'
+ if: github.actor != 'bot-for-notamitgamer[bot]'
needs: build
steps:
- name: Deploy to GitHub Pages