This repository has been archived by the owner on Jan 4, 2024. It is now read-only.
boamp-extractor #645
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: boamp-extractor | |
on: | |
schedule: | |
- cron: '0 1 * * *' | |
workflow_dispatch: | |
# to consider: the use of action jobs to breakout each task | |
# https://docs.github.com/en/actions/learn-github-actions/essential-features-of-github-actions#sharing-data-between-jobs | |
jobs: | |
boamp: | |
runs-on: ubuntu-latest | |
timeout-minutes: 45 | |
environment: CI | |
steps: | |
- name: checkout the repo | |
uses: actions/checkout@v2 | |
- name: install dependencies | |
run: | | |
pip3 install -r requirements.txt | |
- name: run scraper | |
env: | |
MSTEAMS_WEBHOOK: ${{ secrets.MSTEAMS_WEBHOOK }} | |
run: | | |
python3 boamp-extractor.py | |
- name: save changes | |
run: | | |
git config --global user.email "bot-parser@users.noreply.github.com" | |
git config --global user.name "Bot-Parser" | |
git commit --all --message "Updated by Bot-Parser" || echo "no changes to commit" | |
git push |