build-start #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Commment PR | |
on: | |
repository_dispatch: | |
types: [build-start, build-finish] | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
comment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Comment build start message | |
if: ${{ github.event.action == 'build-start' }} | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
message: | | |
Now I'm building the package for testing. Please be patient. | |
pr_number: ${{github.event.client_payload.pr-number}} | |
comment_tag: ci-bot | |
- name: Comment build finish message | |
if: ${{ github.event.action == 'build-finish' }} | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
message: | | |
CI build finished. Use the link below to test the packge: | |
``` | |
${{github.event.client_payload.release-url}} | |
``` | |
For example, in `npm`: | |
```bash | |
npm i ${{github.event.client_payload.release-url}} | |
``` | |
pr_number: ${{github.event.client_payload.pr-number}} | |
comment_tag: ci-bot |