Skip to content

Commit

Permalink
Use ELEMENT_BOT_TOKEN for release-drafter-workflow.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Feb 2, 2024
1 parent eec5040 commit 1e7bc2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release-drafter-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Release Drafter
on:
workflow_call:
secrets:
ELEMENT_BOT_TOKEN:
required: true
inputs:
include-changes:
description: Project to include changelog entries from in this release.
Expand Down Expand Up @@ -46,11 +49,11 @@ jobs:
if: inputs.include-changes
uses: actions/github-script@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_ID: ${{ steps.release.outputs.id }}
DEPENDENCY: ${{ inputs.include-changes }}
VERSION: ${{ steps.draft-release.outputs.tag_name }}
with:
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
retries: 3
script: |
const { RELEASE_ID: releaseId, DEPENDENCY, VERSION } = process.env;
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ concurrency: ${{ github.workflow }}
jobs:
draft:
uses: matrix-org/matrix-js-sdk/.github/workflows/release-drafter-workflow.yml@develop
secrets:
ELEMENT_BOT_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}

0 comments on commit 1e7bc2f

Please sign in to comment.