Skip to content

Commit bd5041e

Browse files
author
Justin Poehnelt
authored
chore: Update workflow to use GOOGLEWORKSPACE_BOT_TOKEN and googleworkspace-bot identity for operations. (#388)
1 parent e6bedc0 commit bd5041e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/generate-skills.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
# For cron/dispatch: check out main. For push: check out the branch.
4444
ref: ${{ github.head_ref || github.ref_name }}
45-
token: ${{ secrets.GITHUB_TOKEN }}
45+
token: ${{ secrets.GOOGLEWORKSPACE_BOT_TOKEN }}
4646

4747
- name: Install Rust
4848
uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable
@@ -88,6 +88,7 @@ jobs:
8888
(github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
8989
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7
9090
with:
91+
token: ${{ secrets.GOOGLEWORKSPACE_BOT_TOKEN }}
9192
branch: chore/sync-skills
9293
title: "chore: sync skills with Discovery API"
9394
body: |
@@ -107,9 +108,11 @@ jobs:
107108
if: >-
108109
steps.diff.outputs.changed == 'true' &&
109110
github.event_name == 'push'
111+
env:
112+
GITHUB_TOKEN: ${{ secrets.GOOGLEWORKSPACE_BOT_TOKEN }}
110113
run: |
111-
git config user.name "github-actions[bot]"
112-
git config user.email "github-actions[bot]@users.noreply.github.com"
114+
git config user.name "googleworkspace-bot"
115+
git config user.email "googleworkspace-bot@users.noreply.github.com"
113116
114117
git add skills/ docs/skills.md
115118
git commit -m "chore: regenerate skills [skip ci]"

0 commit comments

Comments
 (0)