Github actions for coscli.
- name: Use coscli
uses: afeiship/action-coscli@1.0.0
gh secret set -f ~/.tencent/.env.wms.dicfree.cn
name: coscli test workflow
on: [push]
jobs:
hello:
name: test coscli
runs-on: ubuntu-latest
env:
COS_YML: ${{ secrets.COS_YML }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use coscli
uses: afeiship/action-coscli@master
- name: Debug
run: |
#check env
printenv
coscli --version
# show config
coscli config show
# check .cos.yml file exists
cd ~
ls -alh
cat .cos.yaml