marocchino-sticky-pull-requ.../.github/workflows/comment_on_workflow_run.yml
marocchino 21a90c1106
Hide details (#435)
*  hide details

* 📦 build

* 👷 ci for hide_details option
2021-09-29 03:15:07 +09:00

39 lines
850 B
YAML

name: Comment on PR
on:
workflow_run:
workflows:
- "Test"
types:
- completed
jobs:
comment:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.event == 'pull_request' }}
steps:
- uses: actions/checkout@v2
- name: on artifact
id: artifact
uses: marocchino/on_artifact@v1
with:
name: all
- uses: ./
with:
header: All
number: ${{ steps.artifact.outputs.number }}
message: |
<details open>
<summary>output of `yarn all`</summary>
```
${{ steps.artifact.outputs.all_result }}
```
</details>
- uses: ./
with:
header: All
append: true
hide_details: true
message: |
The build is over.