Skip to content

Commit 23e35a2

Browse files
Copilotbang9
andauthored
chore: Migrate BOT_GH_TOKEN to SDK_GH_BOT1_TOKEN in workflows (#1392)
Replaces intermediate `BOT_GH_TOKEN` environment variable with direct `secrets.SDK_GH_BOT1_TOKEN` references in GitHub Actions workflows. ### Changes - **build-and-test.yml**: Removed unused `BOT_GH_TOKEN` env declaration - **pr-comment-bot.yml**: Changed `env.BOT_GH_TOKEN` to `secrets.SDK_GH_BOT1_TOKEN`, removed env declaration All workflows now reference the secret directly without unnecessary env variable indirection. ### Checklist - [x] **All tests pass locally with my changes** - [x] **I have added tests that prove my fix is effective or that my feature works** - [x] **Public components / utils / props are appropriately exported** - [x] I have added necessary documentation (if appropriate) <!-- START COPILOT CODING AGENT SUFFIX --> <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > .github/workflows 에서 BOT_GH_TOKEN 를 SDK_GH_BOT1_TOKEN 로 마이그레이션 하세요 </details> <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs. --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: bang9 <[email protected]>
1 parent fa7a1c8 commit 23e35a2

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

.github/workflows/build-and-test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ jobs:
1515
build-and-test:
1616
runs-on: ubuntu-latest
1717

18-
env:
19-
BOT_GH_TOKEN: ${{ secrets.SDK_GH_BOT1_TOKEN }}
20-
2118
steps:
2219
- name: Checkout code
2320
uses: actions/checkout@v4

.github/workflows/pr-comment-bot.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ jobs:
77
pr-comment:
88
if : ${{ github.event.issue.pull_request}}
99
runs-on: ubuntu-latest
10-
env:
11-
BOT_GH_TOKEN: ${{ secrets.SDK_GH_BOT1_TOKEN }}
1210
steps:
1311
- uses: actions/checkout@v4
1412
- uses: sendbird/release-automation-action@latest
1513
with:
16-
gh_token: ${{ env.BOT_GH_TOKEN }}
14+
gh_token: ${{ secrets.SDK_GH_BOT1_TOKEN }}
1715
product: 'uikit'
1816
platform: 'js'
1917
framework: 'react'

0 commit comments

Comments
 (0)