Import data from Sched and export a JSON file in OpenFeedback format.
How to prepare for a new edition:
- Set or update Actions secrets (if needed)
SCHED_KEY_RO: read-only key for sched event. Can be found at https://snowcamp.sched.com/editor/exports/apiGITHUB_TOKEN: a GitHub PAT withrepositoryscope from someone with access to this repo
-
Update
SCHED_URLandBRANCHinexport.yml -
Go to export action and select Run workflow to update the data
-
You can now use the URL
https://raw.githubusercontent.com/snowcamp/sched2openfeedback/<BRANCH>/openfeedback.jsonto import data in OpenFeedback.
If the script needs to be updated, you can run it locally. Clone the repo, then:
npm install
npm run build
npm startA file openfeedback.json will be created, to be imported in OpenFeedback.
You need to specify these 2 environment variables, either in your shell or in a .env file at the root of the project:
SCHED_URL=https://<you_event>.sched.com/
SCHED_RO_KEY=<your_sched_readonly_key>
You can also use the npm run build:watch command to automatically rebuild the script when a file is changed.
If the Sched format was updated you can dump direction the raw data from Sched by running:
npm run start:schedIt will create a file sched.json with the raw data.