Skip to content

Calendar event update #246

Calendar event update

Calendar event update #246

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