forked from ArkScript-lang/Ark
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 876 Bytes
/
Copy pathlizard.yml
File metadata and controls
33 lines (27 loc) · 876 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
29
30
31
32
33
name: Lizard PR reporter
on:
issue_comment:
types: [created]
jobs:
lizard:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- run: pip install lizard
- name: Create lizard report
id: lizard
shell: bash
run: |
content=$(python .github/launch-lizard.py)
content="${content//'%'/'%25'}"
content="${content//$'\n'/'%0A'}"
content="${content//$'\r'/'%0D'}"
echo ::set-output name=report::$content
- uses: actions-ecosystem/action-create-comment@v1
if: ${{ startsWith(github.event.comment.body, '/lizard') && github.event.issue.pull_request }}
with:
github_token: ${{ secrets.github_token }}
body: ${{ steps.lizard.outputs.report }}