File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 43
43
cache : " npm"
44
44
- name : Get commit ID
45
45
id : " commit-id"
46
- run : echo "id=$(git rev-parse --short HEAD )" >> $GITHUB_OUTPUT
46
+ run : echo "id=$(git rev-parse --short ${{ github.event.pull_request.head.sha }} )" >> $GITHUB_OUTPUT
47
47
- name : Patch package.json
48
- run : npm pkg set version=$(git rev-parse --short HEAD)
48
+ run : npm pkg set version=${{ steps.commit-id.outputs.id }}
49
49
- name : Install dependencies
50
50
run : npm ci
51
51
- name : Build
Original file line number Diff line number Diff line change 27
27
body : |
28
28
## ci-bot
29
29
30
- Now I'm building the new package reflecting the changes of this PR. Please be patient.
30
+ Now I'm building a test package reflecting the changes of this PR. Please be patient.
31
31
comment-id : ${{ steps.fc.outputs.comment-id }}
32
32
- name : Comment build finish message
33
33
if : ${{ github.event.action == 'build-finish' }}
37
37
body : |
38
38
## ci-bot
39
39
40
- CI build finished . Use the link below to test the packge:
40
+ The test package is successfully built . Use the link below to test the packge:
41
41
42
42
```
43
43
${{ github.event.client_payload.release-url }}
58
58
body : |
59
59
## ci-bot
60
60
61
- CI Build failed .
61
+ Failed to build the test package .
62
62
comment-id : ${{ steps.fc.outputs.comment-id }}
You can’t perform that action at this time.
0 commit comments