Skip to content

Instantly share code, notes, and snippets.

@prasetyowira
prasetyowira / deletewr.sh
Created June 11, 2021 03:00
gh auth login --with-token < token.txt && sudo ./deletewr.sh org/repo
#!/usr/bin/env bash
# Delete workflow runs - dwr
# Given an "owner/repo" name, such as "qmacro/thinking-aloud",
# retrieve the workflow runs for that repo and present them in a
# list. Selected runs will be deleted. Uses the GitHub API.
# Requires gh (GitHub CLI) and jq (JSON processor)
@prasetyowira
prasetyowira / docker-compose.yml
Last active June 11, 2021 03:01
github runner
version: '2.3'
services:
worker:
image: myoung34/github-runner:latest
environment:
ORG_NAME: octolab
RUNNER_NAME: do-runner
RUNNER_TOKEN: someGithubTokenHere
RUNNER_WORKDIR: /home/github/runner/work