From ccdf8509df0442e7f9509d31c23d99441cdbc9ea Mon Sep 17 00:00:00 2001 From: Marven11 <110723864+Marven11@users.noreply.github.com> Date: Tue, 15 Aug 2023 13:47:56 +0800 Subject: [PATCH] Update github action --- .github/workflows/update-star-charts.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-star-charts.yml b/.github/workflows/update-star-charts.yml index 1f3fa16..3892e15 100644 --- a/.github/workflows/update-star-charts.yml +++ b/.github/workflows/update-star-charts.yml @@ -13,15 +13,20 @@ permissions: jobs: update: runs-on: ubuntu-latest - steps: - name: Switch to another branch uses: actions/checkout@v3 - - name: Switch to another branch - run: git checkout images + with: + ref: 'images' - name: Update Star Charts run: | wget -O assets/stars.svg https://starchart.cc/Marven11/Fenjing.svg + wget -O assets/run-tests.svg https://github.com/Marven11/Fenjing/actions/workflows/run-tests.yml/badge.svg + wget -O assets/python-package.svg https://github.com/Marven11/Fenjing/actions/workflows/python-publish.yml/badge.svg + wget -O assets/codecov.svg https://codecov.io/gh/Marven11/Fenjing/branch/main/graph/badge.svg?token=DLP7OH52P3 + wget -O assets/downloads.svg https://static.pepy.tech/badge/fenjing + wget -O assets/downloads-monthly.svg https://static.pepy.tech/badge/fenjing/month + wget -O assets/license.svg https://img.shields.io/badge/license-MPL2.0-blue git config --local user.email "actions@github.com" git config --local user.name "GitHub Actions" git add . && git commit -m 'Update: '"$(date)" && git push