Update Poultry and Red Meat data #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Poultry and Red Meat data | |
on: | |
schedule: | |
- cron: '0 0 3 * *' | |
workflow_dispatch: | |
jobs: | |
update-csv: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check Out Repo | |
uses: actions/checkout@v4 | |
- name: Run docker job | |
run: | | |
docker build -t csvscraper . | |
### Running the container | |
docker run -v ${{ github.workspace }}/data:/usr/src/app/data -p 8081:8081 -e MASTERLIST_URL=${{ secrets.MASTERLIST_URL }} -e NEW_REPORT_URL=${{ secrets.NEW_REPORT_URL }} csvscraper | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9.1.4 | |
with: | |
author_name: GitHub Action | |
author_email: actions@github.com | |
message: 'Update Poultry and Red Meat data' | |
add: 'data' |