id,seq,job,job_label,repo,repo_label,uses,name,with,run,env,if 136862,1,27466,scheduled,207052882,github-to-sqlite,actions/checkout@v2,Check out repo,,,, 136863,2,27466,scheduled,207052882,github-to-sqlite,actions/setup-python@v1,Set up Python,"{""python-version"": ""3.9""}",,, 136864,3,27466,scheduled,207052882,github-to-sqlite,actions/cache@v1,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-pip-\n""}",,, 136865,4,27466,scheduled,207052882,github-to-sqlite,,Install Python dependencies,,"python -m pip install --upgrade pip pip install sqlite-utils>=3.1 sqlite-utils --version pip install -e . pip install datasette pip install bs4 ",, 136866,5,27466,scheduled,207052882,github-to-sqlite,,Create auth.json,,"echo ""{\""github_personal_token\"": \""$GITHUB_ACCESS_TOKEN\""}"" > auth.json ","{""GITHUB_ACCESS_TOKEN"": ""${{ secrets.GH_TOKEN }}""}", 136867,6,27466,scheduled,207052882,github-to-sqlite,,Fetch previous copy of database,,"# So we can keep track of when we first saw each dependent repo wget https://github-to-sqlite.dogsheep.net/github.db",,"!contains(github.event.head_commit.message, 'REFRESH_DB')" 136868,7,27466,scheduled,207052882,github-to-sqlite,,Fetch the repos,,"github-to-sqlite repos github.db dogsheep sqlite-utils tables --counts github.db",, 136869,8,27466,scheduled,207052882,github-to-sqlite,,"Fetch releases, commits, issues, contributors",,"sqlite-utils github.db ""select full_name from repos where owner = 53015001 union select 'simonw/datasette' as full_name union select 'simonw/sqlite-utils' as full_name"" \ --csv --no-headers | while read repo; do github-to-sqlite releases \ github.db $(echo $repo | tr -d '\r'); sleep 10; github-to-sqlite commits \ github.db $(echo $repo | tr -d '\r'); sleep 10; github-to-sqlite tags \ github.db $(echo $repo | tr -d '\r'); sleep 10; github-to-sqlite contributors \ github.db $(echo $repo | tr -d '\r'); sleep 10; github-to-sqlite issues \ github.db $(echo $repo | tr -d '\r'); sleep 10; github-to-sqlite pull-requests \ github.db $(echo $repo | tr -d '\r'); sleep 10; github-to-sqlite issue-comments \ github.db $(echo $repo | tr -d '\r'); sleep 10; github-to-sqlite stargazers \ github.db $(echo $repo | tr -d '\r'); sleep 10; github-to-sqlite workflows \ github.db $(echo $repo | tr -d '\r'); sleep 10; done; # Scrape dependents github-to-sqlite scrape-dependents github.db simonw/datasette simonw/sqlite-utils -v sqlite-utils tables --counts github.db # Delete email addresses from raw_authors sqlite-utils github.db ""update raw_authors set email = ''"" # Fetch emojis github-to-sqlite emojis github.db --fetch # Rebuild FTS tables sqlite-utils rebuild-fts github.db # Populate _analyze_tables_ table sqlite-utils analyze-tables github.db --save",, 136870,9,27466,scheduled,207052882,github-to-sqlite,actions/upload-artifact@v2,,"{""path"": ""github.db""}",,, 136871,10,27466,scheduled,207052882,github-to-sqlite,google-github-actions/setup-gcloud@v0,Set up Cloud Run,"{""version"": ""318.0.0"", ""service_account_email"": ""${{ secrets.GCP_SA_EMAIL }}"", ""service_account_key"": ""${{ secrets.GCP_SA_KEY }}""}",,, 136872,11,27466,scheduled,207052882,github-to-sqlite,,Deploy to Cloud Run,,"gcloud config set run/region us-central1 gcloud config set project datasette-222320 datasette publish cloudrun github.db \ -m demo-metadata.json \ --service github-to-sqlite \ --install=datasette-search-all>=0.3 \ --install=datasette-render-markdown>=1.1.2 \ --install=datasette-pretty-json>=0.2.2 \ --install=datasette-json-html \ --install=datasette-vega \ --install=datasette-render-images \ --install=datasette-graphql \ --install=datasette-atom",, 136873,1,27467,test,207052882,github-to-sqlite,actions/checkout@v2,,,,, 136874,2,27467,test,207052882,github-to-sqlite,actions/setup-python@v2,Set up Python ${{ matrix.python-version }},"{""python-version"": ""${{ matrix.python-version }}""}",,, 136875,3,27467,test,207052882,github-to-sqlite,actions/cache@v2,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-pip-\n""}",,, 136876,4,27467,test,207052882,github-to-sqlite,,Install dependencies,,"pip install -e '.[test]' ",, 136877,5,27467,test,207052882,github-to-sqlite,,Run tests,,"pytest ",, 136878,1,27468,deploy,207052882,github-to-sqlite,actions/checkout@v2,,,,, 136879,2,27468,deploy,207052882,github-to-sqlite,actions/setup-python@v2,Set up Python,"{""python-version"": ""3.11""}",,, 136880,3,27468,deploy,207052882,github-to-sqlite,actions/cache@v2,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-publish-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-publish-pip-\n""}",,, 136881,4,27468,deploy,207052882,github-to-sqlite,,Install dependencies,,"pip install setuptools wheel twine ",, 136882,5,27468,deploy,207052882,github-to-sqlite,,Publish,,"python setup.py sdist bdist_wheel twine upload dist/* ","{""TWINE_USERNAME"": ""__token__"", ""TWINE_PASSWORD"": ""${{ secrets.PYPI_TOKEN }}""}", 136883,1,27469,build,207052882,github-to-sqlite,actions/checkout@v2,Check out repo,,,, 136884,2,27469,build,207052882,github-to-sqlite,,Update TOC,,npx markdown-toc README.md -i,, 136885,3,27469,build,207052882,github-to-sqlite,,Commit and push if README changed,,"git diff git config --global user.email ""readme-bot@example.com"" git config --global user.name ""README-bot"" git diff --quiet || (git add README.md && git commit -m ""Updated README"") git push",, 136886,1,27470,test,207052882,github-to-sqlite,actions/checkout@v2,,,,, 136887,2,27470,test,207052882,github-to-sqlite,actions/setup-python@v2,Set up Python ${{ matrix.python-version }},"{""python-version"": ""${{ matrix.python-version }}""}",,, 136888,3,27470,test,207052882,github-to-sqlite,actions/cache@v2,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-pip-\n""}",,, 136889,4,27470,test,207052882,github-to-sqlite,,Install dependencies,,"pip install -e '.[test]' ",, 136890,5,27470,test,207052882,github-to-sqlite,,Run tests,,"pytest ",,