Skip to content

Commit

Permalink
docs(main): add robot for sealos (#2959)
Browse files Browse the repository at this point in the history
Signed-off-by: cuisongliu <cuisongliu@qq.com>
  • Loading branch information
cuisongliu authored Apr 19, 2023
1 parent 3018f69 commit de11f2b
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 12 deletions.
39 changes: 39 additions & 0 deletions .github/gh-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: v1
debug: true
bot:
prefix: /sealos
spe: _
allowOps:
- sealos-ci-robot
- sealos-release-robot
email: sealos-ci-robot@sealos.io
username: sealos-ci-robot
repo:
org: false
name: sealos-ci-robot/sealos
fork: labring/sealos

changelog:
script: scripts/changelog.sh {{.Repo.Fork}}
allowOps:
- cuisongliu
reviewers:
- cuisongliu

release:
retry: 15s
action: Release
allowOps:
- cuisongliu

message:
success: |
🤖 says: The action {{.Body}} finished successfully 🎉
format_error: |
🤖 says: ‼️ The action format error, please check the format of this action.
permission_error: |
🤖 says: ‼️ The action no has permission to trigger.
release_error: |
🤖 says: ‼️ The action release error.
changelog_error: |
🤖 says: ‼️ The action changelog error.
23 changes: 23 additions & 0 deletions .github/workflows/bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Github Rebot for Sealos
on:
issue_comment:
types:
- created
env:
GH_TOKEN: "${{ secrets.GH_PAT }}"
GH_REBOT_VERSION: "v0.0.1"
jobs:
comment:
if: startswith(github.event.comment.body, '/sealos')
runs-on: ubuntu-latest
steps:
- name: Checkout the latest code
uses: actions/checkout@v3
- name: Download gh-rebot
run: |
sudo wget -q https://github.com/labring-actions/gh-rebot/releases/download/${GH_REBOT_VERSION}/gh-rebot_${GH_REBOT_VERSION#v}_linux_amd64.tar.gz
sudo tar -zxf gh-rebot_${GH_REBOT_VERSION#v}_linux_amd64.tar.gz gh-rebot && chmod +x gh-rebot && sudo mv gh-rebot /usr/bin/gh-rebot
gh-rebot version
- name: Using sealos-rebot
run: |
gh-rebot comment
12 changes: 0 additions & 12 deletions .github/workflows/debug.yml

This file was deleted.

0 comments on commit de11f2b

Please sign in to comment.