File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 if : github.repository == 'vuejs/core' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/ecosystem-ci run')
1111 steps :
12- - uses : actions/github-script@v7
12+ - name : Check user permission
13+ uses : actions/github-script@v7
1314 with :
1415 script : |
1516 const user = context.payload.sender.login
4344 })
4445 throw new Error('not allowed')
4546 }
46- - uses : actions/github-script@v7
47+ - name : Get PR info
48+ uses : actions/github-script@v7
4749 id : get-pr-data
4850 with :
4951 script : |
5658 return {
5759 num: context.issue.number,
5860 branchName: pr.head.ref,
59- repo: pr.head.repo.full_name
61+ repo: pr.head.repo.full_name,
62+ commit: pr.head.sha
6063 }
61- - uses : actions/github-script@v7
64+ - name : Trigger run
65+ uses : actions/github-script@v7
6266 id : trigger
6367 env :
6468 COMMENT : ${{ github.event.comment.body }}
8084 prNumber: '' + prData.num,
8185 branchName: prData.branchName,
8286 repo: prData.repo,
83- suite: suite === '' ? '-' : suite
87+ suite: suite === '' ? '-' : suite,
88+ commit: prData.commit
8489 }
8590 })
You can’t perform that action at this time.
0 commit comments