Skip to content

Scrape Actions

Scrape Actions #230

Workflow file for this run

---
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