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 }}