Skip to content

build-start

build-start #3

Workflow file for this run

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