Skip to content

Commit 33416b6

Browse files
authored
refactor(main): release bot (#126)
Signed-off-by: cuisongliu <[email protected]>
1 parent 461af13 commit 33416b6

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/gh-bot.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: v1
2+
debug: true
3+
action:
4+
printConfig: false
5+
release:
6+
retry: 15s
7+
actionName: Release
8+
allowOps:
9+
- cuisongliu
10+
bot:
11+
prefix: /
12+
spe: _
13+
allowOps:
14+
- sealos-ci-robot
15+
- sealos-release-robot
16+
17+
username: sealos-ci-robot
18+
repo:
19+
org: false
20+
21+
message:
22+
success: |
23+
🤖 says: Hooray! The action {{.Body}} has been completed successfully. 🎉
24+
format_error: |
25+
🤖 says: ‼️ There is a formatting issue with the action, kindly verify the action's format.
26+
permission_error: |
27+
🤖 says: ‼️ The action doesn't have permission to trigger.
28+
release_error: |
29+
🤖 says: ‼️ Release action failed.
30+
Error details: {{.Error}}

.github/workflows/bot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Github Rebot
2+
on:
3+
issue_comment:
4+
types:
5+
- created
6+
env:
7+
GH_TOKEN: "${{ secrets.GH_PAT }}"
8+
GH_REBOT_VERSION: "v0.0.5"
9+
jobs:
10+
comment:
11+
if: startswith(github.event.comment.body, '/')
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout the latest code
15+
uses: actions/checkout@v3
16+
- name: Gh Rebot for Sealos
17+
uses: labring/[email protected]
18+
with:
19+
version: v0.0.7-rc1
20+
env:
21+
SEALOS_TYPE: "/comment"
22+
GH_TOKEN: "${{ secrets.GH_PAT }}"

0 commit comments

Comments
 (0)