This folder contains a script that pushes the latest version of dynamically generated data to CC Open Source. This data updates the following pages:
- Community Team Members — Creative Commons Open Source
- Open Source Projects — Creative Commons Open Source
Data source:
- Community Team Tracking - Asana (limited access)
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.
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
repository via the push_data_via_git.py
script.
See repository README for licensing information, etc: