Skip to content

Commit f49518c

Browse files
committed
ci: rename changelog updater token env to GH_TOKEN
was named BOT_TOKEN but now sourced from secrets.GITHUB_TOKEN - misleading. rename the workflow env and the os.environ lookup in the python updater so the name reflects what is actually injected.
1 parent 1e95f8d commit f49518c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/append_changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Run changelog updater
4545
env:
4646
GITHUB_REPOSITORY: ${{ github.repository }}
47-
BOT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4848
GITHUB_EVENT_PATH: ${{ github.event_path }}
4949
run: |
5050
python scripts/update_changelog.py \

scripts/update_changelog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
args = parser.parse_args()
99

1010
repo = os.environ["GITHUB_REPOSITORY"]
11-
token = os.environ["BOT_TOKEN"]
11+
token = os.environ["GH_TOKEN"]
1212
headers = {"Authorization": f"Bearer {token}", "Accept": "application/vnd.github.v3+json"}
1313

1414
# Fetch PR metadata

0 commit comments

Comments
 (0)