-
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.09 KB
/
Copy pathsummary.yml
File metadata and controls
44 lines (39 loc) · 1.09 KB
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
44
name: PR Summary
on:
issue_comment:
types: [created]
pull_request:
types: [opened, edited]
permissions:
contents: read
pull-requests: write
jobs:
summary:
if: |
(
github.event_name == 'issue_comment' &&
github.event.issue.pull_request != null &&
github.event.comment.body == '/ci summary'
) ||
(
github.event_name == 'pull_request' &&
(
github.event.pull_request.body == '' ||
github.event.pull_request.body == null
)
)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: refs/pull/${{ github.event.pull_request.number || github.event.issue.number }}/head
- name: Run summary script
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
URL: ${{ secrets.AI_URL }}
TOKEN: ${{ secrets.AI_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
REPO: ${{ github.repository }}
run: |
chmod +x ci/summary/main.sh
bash ci/summary/main.sh