From 5b5dcbd35ffa6b76d62edb9883850d8a486542ee Mon Sep 17 00:00:00 2001 From: Raydo Matthee Date: Thu, 6 Jun 2024 05:39:00 +0200 Subject: [PATCH] Create fetch_and_process_workflow.yml --- .../workflows/fetch_and_process_workflow.yml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/fetch_and_process_workflow.yml diff --git a/.github/workflows/fetch_and_process_workflow.yml b/.github/workflows/fetch_and_process_workflow.yml new file mode 100644 index 0000000..0c0edba --- /dev/null +++ b/.github/workflows/fetch_and_process_workflow.yml @@ -0,0 +1,34 @@ +name: Fetch and Process Course Data + +on: + push: + branches: + - main + +jobs: + fetch_and_process: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python environment + uses: actions/setup-python@v2 + with: + python-version: 3.x + + - name: Install dependencies + run: pip install requests + + - name: Run fetch and process script + run: python fetch_and_process_data.py + + - name: Commit changes + run: | + git config --global user.name "GitHub Actions" + git config --global user.email "actions@github.com" + git add course_feed.json + git add badges.json + git commit -m "Update course feed and badges" + git push