Skip to content

refactor(main): using v2.0.0 #8

refactor(main): using v2.0.0

refactor(main): using v2.0.0 #8

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 }}"