-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 1.18 KB
/
update_calendar.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
name: Calendar event update
on:
schedule:
- cron: '30 1 * * *'
workflow_dispatch:
jobs:
update_calendar:
name: Run Python unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Get release
id: get_release
uses: jossef/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python setup.py install
mkdir output
- name: Create calendar event
run: python ./resume/__main__.py --input 'resume.json' --output 'output/resume.ics' --format 'ics'
- name: Upload calendar event
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.get_release.outputs.tag_name }}
release_name: ${{ steps.get_release.outputs.name }}
file: ./output/resume.ics
overwrite: true
asset_name: resume.ics