Fetch Logos from Oss #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Fetch Logos from Oss | |
on: workflow_dispatch | |
jobs: | |
fetch-data: | |
runs-on: ubuntu-latest | |
env: | |
MYAPPS_LOGO_DIR: "logos" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install ossutil | |
run: | | |
wget http://gosspublic.alicdn.com/ossutil/1.7.6/ossutil64 | |
chmod 755 ossutil64 | |
- name: Configure ossutil | |
run: ./ossutil64 config -e ${{ secrets.OSS_ENDPOINT }} -i ${{ secrets.OSS_ACCESS_KEY_ID }} -k ${{ secrets.OSS_ACCESS_KEY_SECRET }} | |
- name: Download logos from oss | |
run: ./ossutil64 cp oss://libs-websoft9-com/Websoft9/logo/product/ $MYAPPS_LOGO_DIR -r --update | |
- name: Commit and push changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Update data 、logos、screenshots |