Skip to content

Generate iCal File

Generate iCal File #16

name: Generate iCal File
on:
workflow_dispatch:
push:
paths:
- 'docs/calendar/calendar.js'
- 'docs/calendar/events.yaml'
jobs:
generate-ical:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: npm install js-yaml ics luxon
- name: Generate iCal File
run: node .github/workflows/generate_ical.js
- name: Commit and Push Changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add docs/calendar/digital_work_cal.ical
git commit -m "Update digital_work_cal.ical"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}