Scrape Actions #224
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: Scrape Actions | |
on: | |
schedule: | |
- cron: '0 5 * * 1' # every monday at 5 am | |
# Allows for manually triggered actions | |
workflow_dispatch: | |
jobs: | |
scrape: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install -r scrape/requirements.txt | |
python -m pip install . | |
- name: Scrape | |
run: python ./scrape/scrape.py | |
- name: Format generated code | |
run: | | |
isort awacs | |
black awacs | |
- name: Commit & push collected actions | |
run: | | |
git config user.name "GitHub Workflow" | |
git config user.email [email protected] | |
git add awacs/ | |
git commit -m "Action Update $(date "+%G-%V")" || true | |
git push |