Skip to content

Commit

Permalink
Update actions_changelogs_since_last_run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgencheg authored Sep 3, 2024
1 parent f9ee715 commit 4c9ea19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/actions_changelogs_since_last_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
GITHUB_API_URL = os.environ.get("GITHUB_API_URL", "https://api.github.com")
GITHUB_REPOSITORY = os.environ["GITHUB_REPOSITORY"]
GITHUB_RUN = os.environ["GITHUB_RUN_ID"]
GITHUB_TOKEN = os.environ["GITHUB_TOKEN"]
BOT_TOKEN = os.environ["BOT_TOKEN"]
CHANGELOG_DIR = os.environ["CHANGELOG_DIR"]
CHANGELOG_DISCORD_WEBHOOK = os.environ["CHANGELOG_DISCORD_WEBHOOK"]
PR_NUMBER = os.environ["PR_NUMBER"]
Expand All @@ -37,7 +37,7 @@ def main():
return

session = requests.Session()
session.headers["Authorization"] = f"Bearer {GITHUB_TOKEN}"
session.headers["Authorization"] = f"Bearer {BOT_TOKEN}"
session.headers["Accept"] = "Accept: application/vnd.github+json"
session.headers["X-GitHub-Api-Version"] = "2022-11-28"

Expand Down

0 comments on commit 4c9ea19

Please sign in to comment.