File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,11 +12,28 @@ jobs:
1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@v2
15+ - uses : actions/setup-node@v3
16+ with :
17+ node-version : 18.x
18+ cache : pnpm
19+ - name : Get pnpm store directory
20+ run : |
21+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
22+ - name : Setup pnpm cache
23+ uses : actions/cache@v4
24+ with :
25+ path : ${{ env.STORE_PATH }}
26+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
27+ restore-keys : |
28+ ${{ runner.os }}-pnpm-store-
29+ - name : Install
30+ run : |
31+ pnpm Install
32+ pnpm build
1533 - uses : ./
1634 id : commit-comment
1735 with :
1836 token : ${{ secrets.GITHUB_TOKEN }}
1937 body : |
2038 Website preview for commit ${GITHUB_SHA} at ${GITHUB_RUN_ATTEMPT}
21- - [Preview](https://h7ml.github.io/commit-comment)
22- - [Source code](https://github.com/h7ml/commit-comment)
39+ - [Source code](https://github.com/dext7r/commit-comment)
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ This GitHub Action allows you to automatically create a commit comment on a pull
1616
1717 ``` yaml
1818 - name : Commit Comment
19- uses : dext7r/commit-comment@v1.0.0
19+ uses : dext7r/commit-comment-action @v1.0.0
2020 with :
2121 token : ${{ secrets.GITHUB_TOKEN }}
2222 body : ' This is a test comment.'
4949
5050 steps:
5151 - name: Commit Comment
52- uses: dext7r/commit-comment@v1.0.0
52+ uses: dext7r/commit-comment-action @v1.0.0
5353 with:
5454 token: ${{ secrets.GITHUB_TOKEN }}
5555 body: 'Hello from GitHub Action!'
Original file line number Diff line number Diff line change 1- name : ' commit-comment'
1+ name : ' commit-comment-action '
22description : ' A GitHub Action to commit comment'
33author : ' h7ml <h7ml@qq.com>'
44
@@ -22,5 +22,5 @@ outputs:
2222 description : The ID of the comment that was created.
2323
2424runs :
25- using : node16
25+ using : node18
2626 main : ' ./dist/lib/index.js'
You can’t perform that action at this time.
0 commit comments