Fetch and process #8548
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: Fetch and process | |
on: | |
schedule: | |
- cron: "*/20 12-14 * * *" | |
- cron: "0 15-18 * * *" | |
workflow_dispatch: | |
repository_dispatch: | |
jobs: | |
fetch: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Check-out the repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: main | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
cache: "pip" | |
- name: Install Python venv and requirements | |
run: make venv | |
- name: Configure git | |
run: git config --global user.name "Automated"; git config user.email "actions@users.noreply.github.com" | |
- name: Fetch inbox feed, convert | |
run: make run-feed | |
env: | |
FEED_URL: ${{ secrets.FEED_URL }} | |
- name: Generate history file | |
run: make run-history | |
- name: Push changes | |
run: git push |