name: Grab NYT Sudoku on: workflow_dispatch: schedule: # https://crontab.guru/every-day - cron: "0 14 * * *" jobs: writeData: runs-on: ubuntu-latest steps: - name: checkout main branch uses: actions/checkout@v2 - run: pip install numpy bs4 - run: python NYT.py - run: git config --local user.email "action@github.com" - run: git config --local user.name "GitHub Action" - run: git add NYTSudoku.csv - run: git commit -m "NYTSudoku.csv updated" - run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}