This folder contains a script that pushes the latest version of dynamically generated data to CC Open Source. This data updates the following pages:
- CC Search page on CC Open Source (roadmap portion)
- Community Team Members page on CC Open Source
- Projects page on CC Open Source.
This script is run via GitHub Actions automatically.
- Install Pipenv
- Navigate to the
push_data_to_ccos
folder and runpipenv install
- Set the
ADMIN_GITHUB_TOKEN
environment variable with your GitHub token. You will need a GitHub token with admin permissions to thecreativecommons
GitHub organization. - Set the ADMIN_ASANA_TOKEN environment variable with your Asana token. You will need an Asana token with access to the Creative Commons Asana organization.
- Run the script:
pipenv run sync_data.py
(or if you're in a virtual environment already,python3 sync_data.py
)
Repository data is generated in get_repo_data.py
and pulls data on CC repositories using the GitHub API.
Repository data is generated in get_search_roadmap_data.py
. This pulls tasks from the CC Search Roadmap
Asana project in CC's Asana organization,
does some basic cleaning and filtering, and adds the tasks to a template.
Community Team member data is generated from the Community Teams Tracking
Asana project in CC's Asana organization.
Data is pushed to the [creativecommons.github.io-source](https://github.com/creativecommons/creativecommons.github.io-source)
repository in the push_data_via_git.py
file.
See repository README for licensing information, etc: