Skip to content

Commit

Permalink
fix(ci): add token to release notes CI (#3890)
Browse files Browse the repository at this point in the history
# Motivation

Action `release-drafter/release-drafter` is missing the GITHUB token.
  • Loading branch information
AntonioVentilii authored Jan 6, 2025
1 parent d7e1cac commit fa996f1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,22 @@ jobs:
runs-on: ubuntu-24.04

steps:

- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}

- name: Checkout repository
uses: actions/checkout@v4

- name: Publish Release Notes
id: publish_release
uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
with:
version: ${{ github.ref_name }}
tag: ${{ github.ref_name }}
Expand Down

0 comments on commit fa996f1

Please sign in to comment.