Skip to content

afeiship/action-coscli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

action-coscli

Github actions for coscli.

usgae

- name: Use coscli
  uses: afeiship/action-coscli@1.0.0

config

gh secret set -f ~/.tencent/.env.wms.dicfree.cn

full

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