update README
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
# setup-ossutil
|
# setup-ossutil
|
||||||
|
|
||||||
[](https://github.com/yizhoumo/setup-ossutil/actions/workflows/build.yml)
|
[](https://github.com/yizhoumo/setup-ossutil/actions/workflows/ci.yml)
|
||||||
[](https://github.com/yizhoumo/setup-ossutil/actions/workflows/functional.yml)
|
[](https://github.com/yizhoumo/setup-ossutil/actions/workflows/functional.yml)
|
||||||
|
|
||||||
This action sets up [Alibaba Cloud OSSUTIL](https://github.com/aliyun/ossutil) for use in actions by:
|
This action sets up [Alibaba Cloud OSSUTIL](https://github.com/aliyun/ossutil)
|
||||||
|
for use in actions by:
|
||||||
|
|
||||||
- downloading and caching ossutil by version and adding to PATH
|
- downloading and caching ossutil by version and adding to PATH
|
||||||
- configuring ossutil with your credentials
|
- configuring ossutil with your credentials
|
||||||
@@ -21,7 +22,7 @@ steps:
|
|||||||
access-key-id: ${{ secrets.OSS_ACCESS_KEY_ID }}
|
access-key-id: ${{ secrets.OSS_ACCESS_KEY_ID }}
|
||||||
access-key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
|
access-key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
|
||||||
sts-token: ${{ secrets.OSS_STS_TOKEN }} # Optional
|
sts-token: ${{ secrets.OSS_STS_TOKEN }} # Optional
|
||||||
ossutil-version: '1.7.14' # Optional, default to '1.7.14'. Use 'latest' to get the latest version.
|
ossutil-version: '1.7.14' # Optional. Use 'latest' for the latest version.
|
||||||
- run: ossutil cp -f file-to-upload.txt oss://your-bucket/path
|
- run: ossutil cp -f file-to-upload.txt oss://your-bucket/path
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ inputs:
|
|||||||
description: 'The STS Token of the credentials'
|
description: 'The STS Token of the credentials'
|
||||||
required: false
|
required: false
|
||||||
ossutil-version:
|
ossutil-version:
|
||||||
description: 'The OSSUTIL version to download and use'
|
description: 'The OSSUTIL version to download and use, or "latest" for the latest version.'
|
||||||
required: false
|
required: false
|
||||||
default: '1.7.14'
|
default: '1.7.14'
|
||||||
github-token:
|
github-token:
|
||||||
|
|||||||
Reference in New Issue
Block a user