Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
qqhsx authored May 25, 2024
1 parent 7f56c52 commit ed69b67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@ jobs:
run: |
python popularity.py
env:
CSV_FILE_NAME: ${{ secrets.CSV_FILE_NAME }}
CSV_FILE_NAME: ${{ secrets.CSV_FILE_NAME }.csv}

- name: Upload CSV as Artifact
uses: actions/upload-artifact@v2
with:
name: wencai-results
path: ${{ secrets.CSV_FILE_NAME }}
path: ${{ secrets.CSV_FILE_NAME }.csv}

- name: Commit and Push CSV to Repository
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -f ${{ secrets.CSV_FILE_NAME }}
git commit -m 'Automatically update and commit ${{ secrets.CSV_FILE_NAME }}' || echo "No changes to commit"
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 push origin HEAD:${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ed69b67

Please sign in to comment.