From d9fe5b88d3a07e1763d22689b4538da19fbe9935 Mon Sep 17 00:00:00 2001 From: Athul R T Date: Sat, 2 Dec 2023 08:06:18 +0530 Subject: [PATCH] changed workflow name and workflow file name --- .github/workflows/daily-data-update.yml | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/daily-data-update.yml diff --git a/.github/workflows/daily-data-update.yml b/.github/workflows/daily-data-update.yml new file mode 100644 index 0000000..ffcc921 --- /dev/null +++ b/.github/workflows/daily-data-update.yml @@ -0,0 +1,42 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Daily Data Updater + +on: + push: + branches: [ "main","develop" ] + pull_request: + branches: [ "main", "develop" ] + + schedule: + - cron: '30 21 * * *' + +permissions: write-all + + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Run and update vaccine data + run: | + python daily_data_updater.py + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git commit -am "GH ACTION Headlines $(date)" + git push origin main +