-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (38 loc) · 1.11 KB
/
test-pr.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
name: Github Rebot for Sealos test PR
on:
- push
- pull_request_target
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
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Build file
run: |
make install
- if: ${{ (github.event_name != 'push') }}
run: |
robot action
env:
SEALOS_TYPE: "issue_comment"
SEALOS_FILENAME: "templates/template.md"
SEALOS_REPLACE_TAG: "DEFAULT"
GH_TOKEN: "${{ secrets.GH_PAT }}"
- name: add file
run: |
echo "somethings.....default" >> templates/template.md
- if: ${{ (github.event_name != 'push') }}
run: |
robot action
env:
SEALOS_TYPE: "issue_comment"
SEALOS_FILENAME: "templates/template.md"
SEALOS_REPLACE_TAG: "DEFAULT"
GH_TOKEN: "${{ secrets.GH_PAT }}"