mirror of
https://github.com/sstent/NYT_Sudoku.git
synced 2025-12-06 06:01:41 +00:00
Create blank.yml
This commit is contained in:
25
.github/workflows/blank.yml
vendored
Normal file
25
.github/workflows/blank.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
Name: Add row to data.csv
|
||||
on:
|
||||
schedule:
|
||||
# https://crontab.guru/every-day
|
||||
- cron: "0 0 * * *"
|
||||
jobs:
|
||||
writeData:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout main branch
|
||||
uses: actions/checkout@v2
|
||||
- uses: gr2m/write-csv-file-action@v1.x
|
||||
with:
|
||||
path: data/stats.csv
|
||||
columns: Column 1, Column 2, etc
|
||||
"Column 1": 1
|
||||
"Column 2": 2
|
||||
etc: 3
|
||||
- run: git config --local user.email "action@github.com"
|
||||
- run: git config --local user.name "GitHub Action"
|
||||
- run: git add data
|
||||
- run: git commit -m "data/stats.csv updated"
|
||||
- run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user