Fetch events #3241
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 events" | |
on: | |
workflow_dispatch: | |
# Triggers the workflow every day | |
schedule: | |
- cron: "0 22 * * *" | |
jobs: | |
cron: | |
runs-on: ubuntu-latest | |
environment: prod | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: 'pip' # caching pip dependencies | |
- name: Install requirements | |
run: pip install -r requirements.txt | |
- name: Install just | |
uses: extractions/setup-just@v1 | |
- name: Cleanup future events | |
run: just clean-future | |
- name: Fetch upcoming events | |
run: just fetch-upcoming | |
env: # Set the secret as an input | |
MEETUP_CLIENT_KEY: ${{ secrets.MEETUP_CLIENT_KEY }} | |
MEETUP_MEMBER_ID: ${{ secrets.MEETUP_MEMBER_ID }} | |
MEETUP_JWT_KEY: ${{ secrets.MEETUP_JWT_KEY }} | |
- name: Push events directory | |
run: | | |
git config --global user.name "Python España" | |
git config --global user.email "contacto@es.python.org" | |
just commit-events |