-
Notifications
You must be signed in to change notification settings - Fork 12
38 lines (38 loc) · 1.18 KB
/
update_schedule.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Update schedule
on:
workflow_dispatch:
schedule:
- cron: "22 */2 * * *"
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.11"
- run: |
cd scripts
pip install poetry
poetry install
poetry run python schedule_sync.py
env:
PRETALX_TOKEN: ${{ secrets.PRETALX_TOKEN }}
- run: git diff
- uses: EndBug/[email protected]
id: add-and-commit
with:
add: 'public/people src/content/sessions src/content/people src/content/_people_etags.yml'
author_name: Robot
author_email: beep-boop@local
message: "Auto-update of schedule"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Notify discord
# if: steps.add-and-commit.outputs.committed == 'true'
# uses: th0th/[email protected]
# env:
# DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
# GITHUB_ACTOR: ${{ github.actor }}
# GITHUB_JOB_NAME: "Update schedule"
# GITHUB_JOB_STATUS: ${{ job.status }}