File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,13 @@ name: Release Sanity checks
2
2
on :
3
3
workflow_call :
4
4
secrets :
5
- GITHUB_TOKEN :
6
- required : true
5
+ ELEMENT_BOT_TOKEN :
6
+ required : false
7
7
inputs :
8
8
repository :
9
9
type : string
10
- required : true
10
+ required : false
11
+ default : ${{ github.repository }}
11
12
description : " The repository (in form owner/repo) to check for release blockers"
12
13
13
14
permissions : {}
21
22
env :
22
23
REPO : ${{ inputs.repository }}
23
24
with :
24
- github-token : ${{ secrets.GITHUB_TOKEN }}
25
+ github-token : ${{ secrets.ELEMENT_BOT_TOKEN || secrets. GITHUB_TOKEN }}
25
26
script : |
26
27
const { REPO } = process.env;
27
28
const { data } = await github.rest.search.issuesAndPullRequests({
Original file line number Diff line number Diff line change 46
46
issues : read
47
47
pull-requests : read
48
48
uses : matrix-org/matrix-js-sdk/.github/workflows/release-checks.yml@develop
49
- secrets :
50
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51
- with :
52
- repository : ${{ github.repository }}
53
49
54
50
release :
55
51
name : Release
You can’t perform that action at this time.
0 commit comments