-
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.
feature(main): test action for version (#22)
Signed-off-by: cuisongliu <[email protected]>
- Loading branch information
1 parent
4d3fc9a
commit 380104d
Showing
4 changed files
with
11 additions
and
13 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 |
---|---|---|
|
@@ -5,19 +5,17 @@ on: | |
- created | ||
env: | ||
GH_TOKEN: "${{ secrets.GH_PAT }}" | ||
GH_REBOT_VERSION: "v0.0.5" | ||
jobs: | ||
comment: | ||
if: startswith(github.event.comment.body, '/release') | ||
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/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 Rebot for Sealos | ||
uses: labring/[email protected] | ||
with: | ||
version: v0.0.6-rc6 | ||
env: | ||
SEALOS_TYPE: "/comment" | ||
GH_TOKEN: "${{ secrets.GH_PAT }}" |
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
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
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