Skip to content

Commit 7dab38d

Browse files
committed
chore(ci): fix commit-id and words
1 parent e84eee2 commit 7dab38d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ jobs:
4343
cache: "npm"
4444
- name: Get commit ID
4545
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
4747
- 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 }}
4949
- name: Install dependencies
5050
run: npm ci
5151
- name: Build

.github/workflows/comment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
body: |
2828
## ci-bot
2929
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.
3131
comment-id: ${{ steps.fc.outputs.comment-id }}
3232
- name: Comment build finish message
3333
if: ${{ github.event.action == 'build-finish' }}
@@ -37,7 +37,7 @@ jobs:
3737
body: |
3838
## ci-bot
3939
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:
4141
4242
```
4343
${{ github.event.client_payload.release-url }}
@@ -58,5 +58,5 @@ jobs:
5858
body: |
5959
## ci-bot
6060
61-
CI Build failed.
61+
Failed to build the test package.
6262
comment-id: ${{ steps.fc.outputs.comment-id }}

0 commit comments

Comments
 (0)