-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (44 loc) · 1.32 KB
/
test-issue-reply.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
44
45
46
name: Github Rebot for Sealos test issue reply
on:
issue_comment:
types:
- created
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.20.x
- uses: actions/checkout@v3
- name: Build file
run: |
make install
- if: startswith(github.event.comment.body, '/comment')
run: |
robot action
env:
SEALOS_TYPE: "issue_comment"
# SEALOS_FILENAME: "templates/template.md"
SEALOS_COMMENT: "dfffdjh fdhjfhj gfrjghjf"
GH_TOKEN: "${{ secrets.GH_PAT }}"
- name: using file
if: startswith(github.event.comment.body, '/comment')
run: |
echo "somethings.....default" >> templates/template.md
- run: |
robot action
if: startswith(github.event.comment.body, '/comment')
env:
SEALOS_TYPE: "issue_comment"
SEALOS_FILENAME: "templates/template.md"
GH_TOKEN: "${{ secrets.GH_PAT }}"
- run: |
robot action
if: startswith(github.event.comment.body, '/reply')
env:
SEALOS_TYPE: "issue_comment"
SEALOS_ISREPLY: "true"
SEALOS_FILENAME: "templates/template.md"
GH_TOKEN: "${{ secrets.GH_PAT }}"