File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
if : github.repository == 'vuejs/core' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/ecosystem-ci run')
11
11
steps :
12
- - uses : actions/github-script@v7
12
+ - name : Check user permission
13
+ uses : actions/github-script@v7
13
14
with :
14
15
script : |
15
16
const user = context.payload.sender.login
43
44
})
44
45
throw new Error('not allowed')
45
46
}
46
- - uses : actions/github-script@v7
47
+ - name : Get PR info
48
+ uses : actions/github-script@v7
47
49
id : get-pr-data
48
50
with :
49
51
script : |
56
58
return {
57
59
num: context.issue.number,
58
60
branchName: pr.head.ref,
59
- repo: pr.head.repo.full_name
61
+ repo: pr.head.repo.full_name,
62
+ commit: pr.head.sha
60
63
}
61
- - uses : actions/github-script@v7
64
+ - name : Trigger run
65
+ uses : actions/github-script@v7
62
66
id : trigger
63
67
env :
64
68
COMMENT : ${{ github.event.comment.body }}
80
84
prNumber: '' + prData.num,
81
85
branchName: prData.branchName,
82
86
repo: prData.repo,
83
- suite: suite === '' ? '-' : suite
87
+ suite: suite === '' ? '-' : suite,
88
+ commit: prData.commit
84
89
}
85
90
})
You can’t perform that action at this time.
0 commit comments