Update from PreTalx #908
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: Update from PreTalx | |
on: | |
schedule: | |
- cron: "30 3,13,22 * * *" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
update-and-pr: | |
name: Update and PR | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run Timestamp | |
run: date | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
- name: Install deps | |
run: | | |
# hack: https://github.com/astral-sh/uv/issues/1386#issuecomment-1947801083 | |
pip install uv | |
uv venv .venv | |
echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV | |
echo "$PWD/.venv/bin" >> $GITHUB_PATH | |
uv pip install -r ./scripts/requirements.txt | |
- name: Get PreTalx Data | |
run: ./scripts/pretalx.py get-event-data | |
env: | |
PRETALX_API_KEY: ${{ secrets.PRETALX_API_KEY }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
commit-message: Update data from PreTalx | |
title: Update data from PreTalx | |
author: PyOhio Automation <[email protected]> | |
committer: PyOhio Automation <[email protected]> | |
body: | | |
This is an automatic data update from PreTalx. | |
- Review changes to ensure they are appropriate to publish. | |
- If so, merge. | |
- If not, update data in PreTalx and re-run this workflow. | |
labels: | | |
automated-pr | |
branch: automatic-updates-from-pretalx | |
delete-branch: true |