-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.1 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# creates a new npm release
name: test
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4.2.2
- name: test action
id: gas
uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
heading: "Gas report"
baseBranch: "main"
files: |
mocks/*.json
- name: Prepare comment
run: |
printf '%s' "${{ steps.gas.outputs.report }}" > /tmp/template.md
- name: Find Comment
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: "github-actions[bot]"
body-includes: "Gas report"
- name: Create or update comment
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body-path: /tmp/template.md
edit-mode: replace