-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (27 loc) · 913 Bytes
/
main.yml
File metadata and controls
28 lines (27 loc) · 913 Bytes
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
on: [pull_request]
jobs:
baselime:
runs-on: ubuntu-latest
name: Baselime checks
permissions:
contents: read
pull-requests: write
steps:
- name: setup baselime
id: baselime
uses: baselime/action-setup-baselime@v0.0.1
with:
baselime-api-key: ${{secrets.BASELIME_API_KEY}}
- name: Checkout PR branch
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Generate Baselime status
run: |
baselime status --out-file=/tmp/baselime.json
- name: Post baselime comment
run: |
baselime comment github --path=/tmp/baselime.json \
--repo=$GITHUB_REPOSITORY \
--github-token=${{github.token}} \
--pull-request=${{github.event.pull_request.number}} \