Update Calendar #282
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 Calendar | |
on: | |
schedule: | |
- cron: "0 0 * * *" # 1 checks | |
# - cron: "0 3-9 * * *" # 6 checks | |
# - cron: "0 10-18/2 * * *" # 4 checks | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
- run: pip install -r requirements.txt | |
- name: fetching LFS files | |
run: | | |
git lfs pull | |
- name: checking for new calendar | |
run: | | |
python -m bubt_cnr -calendar | |
shell: bash | |
- name: pushing commits (if neccessary) | |
run: | | |
chmod +x commit.sh | |
sh commit.sh | |
shell: bash |