Dough Git

commit

Update populate.yml

commit
a1fd7cbb7beb8f227022eeb2f750b48666b7cddf
author
Clove Twilight <[email protected]>
date
2026-09-04 12:03

diff --git a/.github/workflows/populate.yml b/.github/workflows/populate.yml
index a06a3ed..21a6b4e 100644
--- a/.github/workflows/populate.yml
+++ b/.github/workflows/populate.yml
@@ -1,20 +1,26 @@
-name: Populate
+name: Sync licence
 
 on:
   workflow_dispatch:
 
-permissions:
-  contents: read
-
 jobs:
-  run:
+  sync:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v4
 
-      - name: Run the script
+      - name: Configure git identity + gh auth
+        env:
+          GH_TOKEN: ${{ secrets.LICENCE_SYNC_TOKEN }}
+        run: |
+          git config --global user.name  "licence-bot"
+          git config --global user.email "[email protected]"
+          gh auth setup-git
+          
+      - name: Run sync
+        working-directory: scripts
         env:
-          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          GH_TOKEN: ${{ secrets.LICENCE_SYNC_TOKEN }}
         run: |
-          chmod +x ./scripts/update.sh
-          ./scripts/update.sh
+          chmod +x ./sync-licence.sh
+          ./sync-licence.sh