Merge pull request #38 from DynoW/upload-2025-11-02-01 #35
Workflow file for this run
This file contains hidden or 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: Fetch Bac PDFs | |
| # on: | |
| # schedule: | |
| # # Runs at 15:05 Europe/Bucharest (12:05 UTC), on Weekdays only for March, May, June, August. | |
| # - cron: '5 12 * 3,5,6,8 1-5' | |
| # workflow_dispatch: {} | |
| # jobs: | |
| # fetch-new-pdfs: | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - name: Checkout repo | |
| # uses: actions/checkout@v4 | |
| # - name: Set up Python | |
| # uses: actions/setup-python@v5 | |
| # with: | |
| # python-version: '3.x' | |
| # - name: Install dependencies | |
| # working-directory: web-scraper | |
| # run: pip install -r requirements.txt | |
| # - name: Run scraper | |
| # working-directory: web-scraper | |
| # run: python main.py | |
| # - name: Commit changes (if any) | |
| # run: | | |
| # git config --global user.name "github-actions[bot]" | |
| # git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| # git add files/ web-scraper/seen_urls.txt | |
| # git diff --cached --quiet || git commit -m "Add new bac PDFs" | |
| # git push |