Skip to content

Commit

Permalink
Merge pull request #4 from adgramigna/dt/add-ashby-to-gh-action
Browse files Browse the repository at this point in the history
enable ashby scraping in gh action
  • Loading branch information
adgramigna authored Oct 30, 2023
2 parents c456fe7 + 3f35d2c commit 92dc0b8
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/daily_job_board_scrape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,25 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: "3.9"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Scrapy script
run: cd job_board_scraper && python run_job_scraper.py
run: |
cd job_board_scraper
python run_job_scraper.py
python get_ashby_jobs.py
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
HASHIDS_SALT: ${{ secrets.HASHIDS_SALT }}
PAGES_TO_SCRAPE_QUERY: ${{ secrets.PAGES_TO_SCRAPE_QUERY }}
ASHBY_PAGES_TO_SCRAPE_QUERY: ${{ secrets.ASHBY_PAGES_TO_SCRAPE_QUERY }}
PG_DATABASE: ${{ secrets.PG_DATABASE }}
PG_HOST: ${{ secrets.PG_HOST }}
PG_PASSWORD: ${{ secrets.PG_PASSWORD }}
Expand All @@ -45,13 +49,13 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: "3.9"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install dbt dependencies
run: cd levergreen_dbt && dbt deps

Expand All @@ -61,4 +65,4 @@ jobs:
PG_DATABASE: ${{ secrets.PG_DATABASE }}
PG_HOST: ${{ secrets.PG_HOST }}
PG_PASSWORD: ${{ secrets.PG_PASSWORD }}
PG_USER: ${{ secrets.PG_USER }}
PG_USER: ${{ secrets.PG_USER }}

0 comments on commit 92dc0b8

Please sign in to comment.