1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-09 10:22:46 +03:00

Fix release-checks to not use reserved name GITHUB_TOKEN

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2024-12-02 10:47:35 +00:00
parent 8863e42e35
commit 051f4e2ab9
2 changed files with 5 additions and 8 deletions

View File

@@ -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: {}
@@ -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({

View File

@@ -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