From ffc4d9ca7b047e0adb58ae0efad160fe7828e8ee Mon Sep 17 00:00:00 2001 From: sstent Date: Mon, 3 Jun 2024 14:27:37 -0400 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..d5fd4aaaaf --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,21 @@ +name: Grab NYT Sudoku +on: + workflow_dispatch: + schedule: + # https://crontab.guru/every-day + - cron: "30 * * * *" +jobs: + writeData: + runs-on: ubuntu-latest + steps: + - name: checkout main branch + uses: actions/checkout@v2 + - run: pip install wget + - run: wget --user=USERNAME --password=abodyinmotion -O NDB92 https://share.garmin.com/Feed/Share/NDB92 + - run: git config --local user.email "action@github.com" + - run: git config --local user.name "GitHub Action" + - run: git add NDB92 + - run: git commit -m "NDB92 updated" + - run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}