name:updates# Controls when the workflow will runon:# Triggers the workflow on push or pull request events but only for the main branchpush:branches:[main ]pull_request:branches:[main ]# Allows you to run this workflow manually from the Actions tabworkflow_dispatch:# A workflow run is made up of one or more jobs that can run sequentially or in paralleljobs:# This workflow contains a single job called "build"build:# The type of runner that the job will run onruns-on:ubuntu-latest# Steps represent a sequence of tasks that will be executed as part of the jobsteps:# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it- uses:actions/checkout@v2- name:Run aptrun:| sudo apt update -y
sudo apt-get install python -y- name:Install comcmdrun:| pip install coscmd
- name:Updatesrun:| coscmd config -a ${{ secrets.COS_ID }} -s ${{ secrets.COS_KEY }} -b ${{ secrets.COS_BUCKET_NAME }} -r ${{ secrets.COS_BUCKET_LOCATION }} -m 16 -p 10coscmd delete -r -f /coscmd upload -rs ${GITHUB_WORKSPACE}/ /