-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: cuisongliu <[email protected]>
- Loading branch information
1 parent
bf83999
commit bb70bea
Showing
1 changed file
with
7 additions
and
11 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 |
---|---|---|
|
@@ -3,21 +3,17 @@ on: | |
issue_comment: | ||
types: | ||
- created | ||
env: | ||
GH_TOKEN: "${{ secrets.GH_PAT }}" | ||
GH_REBOT_VERSION: "v0.0.3-rc4" | ||
jobs: | ||
comment: | ||
if: startswith(github.event.comment.body, '/') | ||
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 | ||
- name: Gh Robot for Sealos | ||
uses: labring/[email protected] | ||
with: | ||
version: v2.0.0 | ||
env: | ||
SEALOS_TYPE: "/comment" | ||
GH_TOKEN: "${{ secrets.GH_PAT }}" |