Skip to content

Commit

Permalink
Merge pull request #8 from gradedSystem/ga-actions-data
Browse files Browse the repository at this point in the history
[update/add][m] Adding GH Actions and updating the data
  • Loading branch information
anuveyatsu authored Oct 11, 2024
2 parents 2e4c4ac + fd08602 commit 80899c1
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,32 @@ on:
- cron: '0 1 * * *'
push:
branches:
- master
- main

jobs:
update:
runs-on: ubuntu-latest

if: github.ref == 'refs/heads/main'

steps:
- uses: actions/checkout@master
- uses: actions/checkout@main
- name: Build the data and create local changes
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'
architecture: x64

- name: Install requirements
run: |
pip install -r scripts/requirements.txt
- name: Process Data
- name: Run Make file
run: |
python scripts/constituents.py
source venv/bin/activate
cd scripts
make
- name: Commit files
run: |
git config --local user.email "[email protected]"
Expand Down

0 comments on commit 80899c1

Please sign in to comment.