GitEvents ICS Generator #1049
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitEvents ICS Generator | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
- name: GitEvents ICS Generator | |
uses: gitevents/[email protected] | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
default-timezone: 'Europe/Athens' | |
locations: 'locations.json' | |
- name: update .ics file | |
run: | | |
if [[ -n "$(git status --porcelain=v1 2>/dev/null)" ]] | |
then | |
git config user.name cdc.cy | |
git config user.email [email protected] | |
git add events.ics | |
git commit events.ics -m "daily calendar update" | |
git push | |
fi |