-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(main): add robot for sealos (#2959)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
- Loading branch information
1 parent
3018f69
commit de11f2b
Showing
3 changed files
with
62 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.