This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Adapted from https://blog.oddbit.com/post/2022-09-22-delete-workflow-runs/ | |
| export REPO_NAME="owner/myrepo" | |
| export WORKFLOW_NAME="myworkflow" | |
| gh run list --json databaseId --repo ${REPO_NAME} -w "${WORKFLOW_NAME}" -q '.[].databaseId' | | |
| xargs -IID gh api "repos/${REPO_NAME}/actions/runs/ID" -X DELETE --silent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Originally from here : https://gist.github.com/ngaffa/15d46c98dd82620c8120ddf7398d6dbd | |
| #cloud-config | |
| package_update: true | |
| package_upgrade: true | |
| packages: | |
| # Update the apt package index and install packages needed to use the Docker and Kubernetes apt repositories over HTTPS | |
| - apt-transport-https | |
| - ca-certificates | |
| - curl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| var fs = require('fs'), | |
| path = require('path'), | |
| suspend = require('suspend'), | |
| resume = suspend.resume, | |
| xml2js = require('xml2js'), | |
| parseString = xml2js.parseString; | |
| var setConfigXml = suspend(function*(rootdir) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| var | |
| Q = require('Q'), | |
| suspend = require('suspend'); | |
| function test() { | |
| var q = Q.defer(); | |
| setTimeout(function() { | |
| console.log('time out'); |