From 5e6b241ec512208bc612f4fb5ca8c6c89290df05 Mon Sep 17 00:00:00 2001 From: johc Date: Wed, 27 Mar 2024 13:22:59 +0100 Subject: [PATCH] Updated workflow --- .github/workflows/fetch_data.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/fetch_data.yml b/.github/workflows/fetch_data.yml index b416bec..c0a6706 100644 --- a/.github/workflows/fetch_data.yml +++ b/.github/workflows/fetch_data.yml @@ -2,18 +2,18 @@ name: Fetch MongoDB Data on: schedule: - - cron: '0 0 * * 0' # This sets it to run weekly on Sunday at midnight - workflow_dispatch: # Manual trigger + - cron: '0 0 * * 0' # Runs weekly on Sunday at midnight + workflow_dispatch: jobs: fetch_data: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 + - name: Checkout master branch + uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.x' @@ -28,11 +28,10 @@ jobs: run: | python fetch_data.py - # Commit and Push changes - name: Commit and Push changes run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git add -A git commit -m "Update data files" || true - git push origin gh-pages + git push