Skip to content

Commit 7a6c665

Browse files
committed
workflow: pass along commit to ecosystem-ci pr workflow
1 parent ca41b92 commit 7a6c665

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/ecosystem-ci-trigger.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ jobs:
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
@@ -43,7 +44,8 @@ jobs:
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: |
@@ -56,9 +58,11 @@ jobs:
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 }}
@@ -80,6 +84,7 @@ jobs:
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
})

0 commit comments

Comments
 (0)