Skip to content

Commit c8bb396

Browse files
committed
CI: fix prepare
1 parent 3914f3c commit c8bb396

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/shipjs-manual-prepare.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,29 @@ jobs:
4040
with:
4141
args: comment "@${{ github.actor }} `shipjs prepare` done"
4242

43+
- uses: actions/github-script@v4
44+
with:
45+
github-token: ${{secrets.GITHUB_TOKEN}}
46+
script: |
47+
github.issues.createComment({
48+
issue_number: context.issue.number,
49+
owner: context.repo.owner,
50+
repo: context.repo.repo,
51+
body: "@\${{github.actor}} \`shipjs prepare\` done"
52+
})
53+
4354
create_fail_comment:
4455
if: cancelled() || failure()
4556
needs: manual_prepare
4657
runs-on: ubuntu-latest
4758
steps:
48-
- uses: actions/github@master
49-
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
- uses: actions/github-script@v4
5160
with:
52-
args: comment "@${{ github.actor }} `shipjs prepare` fail"
61+
github-token: ${{secrets.GITHUB_TOKEN}}
62+
script: |
63+
github.issues.createComment({
64+
issue_number: context.issue.number,
65+
owner: context.repo.owner,
66+
repo: context.repo.repo,
67+
body: "@\${{github.actor}} \`shipjs prepare\` fail"
68+
})

0 commit comments

Comments
 (0)