Skip to content

Commit c7930df

Browse files
authored
Updating GH token for gen doc and update ds version actions (#815)
Updating GH token for
1 parent d1efc2a commit c7930df

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/generate-toolkit-docs.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,12 @@ jobs:
8181
8282
- name: Create pull request
8383
if: steps.check-changes.outputs.has_changes == 'true'
84+
id: cpr
8485
uses: peter-evans/create-pull-request@v7
8586
env:
8687
HUSKY: 0
8788
with:
88-
token: ${{ secrets.GITHUB_TOKEN }}
89+
token: ${{ secrets.DOCS_PUBLISHABLE_GH_TOKEN }}
8990
commit-message: "[AUTO] Adding MCP Servers docs update"
9091
title: "[AUTO] Adding MCP Servers docs update"
9192
body: |
@@ -97,3 +98,10 @@ jobs:
9798
- Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
9899
branch: automation/toolkit-docs-${{ github.run_id }}
99100
delete-branch: true
101+
102+
- name: Request team review
103+
if: steps.check-changes.outputs.has_changes == 'true' && steps.cpr.outputs.pull-request-number != ''
104+
continue-on-error: true
105+
run: gh pr edit ${{ steps.cpr.outputs.pull-request-number }} --add-reviewer ArcadeAI/engineering-tools-and-dx
106+
env:
107+
GH_TOKEN: ${{ secrets.DOCS_PUBLISHABLE_GH_TOKEN }}

.github/workflows/update-design-system-dependency.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ jobs:
4949
5050
- name: Create pull request
5151
if: steps.check-changes.outputs.has_changes == 'true'
52+
id: cpr
5253
uses: peter-evans/create-pull-request@v7
5354
env:
5455
HUSKY: 0
5556
SKIP_HUSKY: 1
5657
with:
57-
token: ${{ secrets.GITHUB_TOKEN }}
58+
token: ${{ secrets.DOCS_PUBLISHABLE_GH_TOKEN }}
5859
commit-message: "chore: update @arcadeai/design-system to latest"
5960
title: "chore: update @arcadeai/design-system to latest"
6061
body: |
@@ -70,3 +71,10 @@ jobs:
7071
pnpm-lock.yaml
7172
branch: automation/update-design-system-dependency
7273
delete-branch: true
74+
75+
- name: Request team review
76+
if: steps.check-changes.outputs.has_changes == 'true' && steps.cpr.outputs.pull-request-number != ''
77+
continue-on-error: true
78+
run: gh pr edit ${{ steps.cpr.outputs.pull-request-number }} --add-reviewer ArcadeAI/engineering-tools-and-dx
79+
env:
80+
GH_TOKEN: ${{ secrets.DOCS_PUBLISHABLE_GH_TOKEN }}

0 commit comments

Comments
 (0)