-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (40 loc) · 1.25 KB
/
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
39
40
41
42
name: FIFA World Cup Qatar 2022
on:
push:
branches:
- main
# Run manually from the Actions tab
workflow_dispatch:
jobs:
Calendar-Publisher:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests icalendar
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run Python
run: |
python main.py
- name: Commit Files
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -A
git commit -m "Update World Cup 2022 Calendar" -a
- name: Push Files
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# - name: Release Files
# uses: elgohr/Github-Release-Action@master
# env:
# GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
# with:
# args: WorldCup2022Calendar