Skip to content

Commit

Permalink
Fix release-checks to not use reserved name GITHUB_TOKEN
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Dec 2, 2024
1 parent 8863e42 commit 051f4e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ name: Release Sanity checks
on:
workflow_call:
secrets:
GITHUB_TOKEN:
required: true
ELEMENT_BOT_TOKEN:
required: false
inputs:
repository:
type: string
required: true
required: false
default: ${{ github.repository }}
description: "The repository (in form owner/repo) to check for release blockers"

permissions: {}
Expand All @@ -21,7 +22,7 @@ jobs:
env:
REPO: ${{ inputs.repository }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.ELEMENT_BOT_TOKEN || secrets.GITHUB_TOKEN }}
script: |
const { REPO } = process.env;
const { data } = await github.rest.search.issuesAndPullRequests({
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/release-make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ jobs:
issues: read
pull-requests: read
uses: matrix-org/matrix-js-sdk/.github/workflows/release-checks.yml@develop
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repository: ${{ github.repository }}

release:
name: Release
Expand Down

0 comments on commit 051f4e2

Please sign in to comment.