-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (48 loc) · 1.6 KB
/
yaml2ics.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
43
44
45
46
47
48
49
name: Run yaml2ics
on:
push:
branches:
- main
workflow_dispatch:
jobs:
default:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10.x
uses: actions/setup-python@v4
with:
#python-version: "3.10"
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ics==0.8.0.dev0
pip install ics-vtimezones==2020.1
pip install yaml2ics==0.2
pip install pyyaml
- name: Run communitycall.py
run: |
python communitycall.py
- name: Execute yaml2ics
run: |
mkdir ./calendar
yaml2ics main.yml > ./calendar/scs.ics
yaml2ics openops.yml > ./calendar/openops.ics
yaml2ics iaas.yml > ./calendar/iaas.ics
yaml2ics iam_n_sec.yml > ./calendar/iam_n_sec.ics
yaml2ics ops.yml > ./calendar/ops.ics
yaml2ics sig_central_api.yml > ./calendar/sig_central_api.ics
yaml2ics sig_community.yml > ./calendar/sig_community.ics
yaml2ics sig_docs.yml > ./calendar/sig_docs.ics
yaml2ics sig_monitoring.yml > ./calendar/sig_monitoring.ics
yaml2ics sig_standard_cert.yml > ./calendar/sig_standard_cert.ics
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./calendar
force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: 'Update SCS community calendar'