forked from labring-sigs/robot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
23 lines (23 loc) · 708 Bytes
/
Copy pathaction.yml
File metadata and controls
23 lines (23 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: "Rebot for Sealos"
description: "Add some robot command for sealos"
author: "cuisongliu"
inputs:
version:
description: 'version of robot'
required: true
default: 'v2.0.0'
runs:
using: "composite"
steps:
- run: |
sudo wget -q https://github.com/labring/robot/releases/download/${REBOT_VERSION}/robot_${REBOT_VERSION#v}_linux_amd64.tar.gz
sudo tar -zxf robot_${REBOT_VERSION#v}_linux_amd64.tar.gz robot && chmod +x robot && sudo mv robot /usr/bin/robot
robot version
sudo rm -rf robot_${REBOT_VERSION#v}_linux_amd64.tar.gz
robot action
shell: bash
env:
REBOT_VERSION: ${{ inputs.version }}
branding:
icon: 'user-check'
color: 'orange'