-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
28 lines (25 loc) · 954 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: 'install aliyun ossutil'
description: 'install aliyun ossutil by webrequest. '
inputs:
aliyun-access-key:
description: 'ALIYUN_ACCESS_KEY'
required: true
aliyun-access-secret:
description: 'ALIYUN_ACCESS_SECRET'
required: true
runs:
using: 'composite'
steps:
- run: |
mkdir ${{github.workspace}}/ossutil
Invoke-WebRequest -URI https://gosspublic.alicdn.com/ossutil/1.7.14/ossutil64.zip -OutFile ${{github.workspace}}/ossutil/ossutil64.zip
cd ${{github.workspace}}/ossutil
7z e ossutil64.zip
"${{github.workspace}}/ossutil" >> $env:GITHUB_PATH
${{github.workspace}}/ossutil/ossutil64 config -e oss-cn-hangzhou.aliyuncs.com -i ${{ inputs.aliyun-access-key }} -k ${{ inputs.aliyun-access-secret }}
Write-Output "Current account information"
${{github.workspace}}/ossutil/ossutil64 ls
shell: pwsh
branding:
icon: 'box'
color: 'gray-dark'