Skip to content

Latest commit

 

History

History

push_data_to_ccos

Push Data to CCOS

This folder contains a script that pushes the latest version of dynamically generated data to CC Open Source. This data updates the following pages:

This script is run via GitHub Actions automatically.

Running the Script

  1. Install Pipenv
  2. Navigate to the push_data_to_ccos folder and run pipenv install
  3. Set the ADMIN_GITHUB_TOKEN environment variable with your GitHub token. You will need a GitHub token with admin permissions to the creativecommons GitHub organization.
  4. 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.
  5. Run the script: pipenv run sync_data.py (or if you're in a virtual environment already, python3 sync_data.py)

About the Code

Repository data

Repository data is generated in get_repo_data.py and pulls data on CC repositories using the GitHub API.

CC Search Roadmap Data

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 Data

Community Team member data is generated from the Community Teams Tracking Asana project in CC's Asana organization.

Pushing to GitHub

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.

Repository README

See repository README for licensing information, etc: