Skip to content

Commit

Permalink
chore(ci): fix commit-id and words
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec-ant committed Jan 4, 2024
1 parent e84eee2 commit 7dab38d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ jobs:
cache: "npm"
- name: Get commit ID
id: "commit-id"
run: echo "id=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
run: echo "id=$(git rev-parse --short ${{ github.event.pull_request.head.sha }})" >> $GITHUB_OUTPUT
- name: Patch package.json
run: npm pkg set version=$(git rev-parse --short HEAD)
run: npm pkg set version=${{ steps.commit-id.outputs.id }}
- name: Install dependencies
run: npm ci
- name: Build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
body: |
## ci-bot
Now I'm building the new package reflecting the changes of this PR. Please be patient.
Now I'm building a test package reflecting the changes of this PR. Please be patient.
comment-id: ${{ steps.fc.outputs.comment-id }}
- name: Comment build finish message
if: ${{ github.event.action == 'build-finish' }}
Expand All @@ -37,7 +37,7 @@ jobs:
body: |
## ci-bot
CI build finished. Use the link below to test the packge:
The test package is successfully built. Use the link below to test the packge:
```
${{ github.event.client_payload.release-url }}
Expand All @@ -58,5 +58,5 @@ jobs:
body: |
## ci-bot
CI Build failed.
Failed to build the test package.
comment-id: ${{ steps.fc.outputs.comment-id }}

0 comments on commit 7dab38d

Please sign in to comment.