From 1c34d254f44609fd81b4bbc7b58f315f87bd11e0 Mon Sep 17 00:00:00 2001 From: qqhsx <56535272+qqhsx@users.noreply.github.com> Date: Sat, 25 May 2024 17:11:19 +0800 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5eab1781..a0213412 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,20 +29,20 @@ jobs: run: | python popularity.py env: - CSV_FILE_NAME: ${{ secrets.CSV_FILE_NAME }.csv} + CSV_FILE_NAME: ${{ secrets.CSV_FILE_NAME }} - name: Upload CSV as Artifact uses: actions/upload-artifact@v2 with: name: wencai-results - path: ${{ secrets.CSV_FILE_NAME }.csv} + path: ${{ secrets.CSV_FILE_NAME }} - name: Commit and Push CSV to Repository run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git add -f ${{ secrets.CSV_FILE_NAME }.csv} - git commit -m 'Automatically update and commit ${{ secrets.CSV_FILE_NAME }.csv}' || echo "No changes to commit" + git add -f ${{ secrets.CSV_FILE_NAME }} + git commit -m 'Automatically update and commit ${{ secrets.CSV_FILE_NAME }}' || echo "No changes to commit" git push origin HEAD:${{ github.ref }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}