Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vincentkoc/actions-google-calendar
Github action to import Google Calendar events
https://github.com/vincentkoc/actions-google-calendar
actions calendar workflow
Last synced: 3 months ago
JSON representation
Github action to import Google Calendar events
- Host: GitHub
- URL: https://github.com/vincentkoc/actions-google-calendar
- Owner: vincentkoc
- Fork: true (max-mapper/google-calendar-import)
- Created: 2022-05-22T10:05:38.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-05-22T11:26:32.000Z (over 2 years ago)
- Last Synced: 2024-09-25T15:37:42.083Z (3 months ago)
- Topics: actions, calendar, workflow
- Language: JavaScript
- Homepage:
- Size: 8.57 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Google Calendar Actions
## Description
This action runs on a cron and gets a Google calendars events so you can write them to a github repo as JSON. events will be saved in this format in the file you specify in your config (using name as the unique key):
```
{
"events": [
{
"name": "National Public Lands Day",
"date": "2021-09-25T00:00:00.000Z",
"description": "It's NPLD"
}
]
}
```## Setup
- Head to Google Cloud project new or existing
- Sidebar select `API and services`
- Click `Library` and enable `Google Calendar API`
- Click `OAuth consent screen` as `External`
- Create consent screen with your email(s) listed as a test user(s).
- Download credentials as JSON and sabe in root as `credentials.json`.
- Run `node src/token.js` to generate token.json following the prompts. When you get redirected in browser the string afer `code=` is your token.
- Set credentials and token json env vars on github action using the output from the script.## Todo
- Add support for multiple calendars.
- Add support for filtering events by date.
- Add support for filtering events by name.
- Add support for other output formats including markdown, txt, csv.