gh workflow run deployment.yml --ref master -f Parameter="Matthias"
Workflow Delete
OWNER=matkoch
REPO=nuke-remote
WORKFLOW_ID=51342736
## list workflows
#gh api -X GET /repos/$OWNER/$REPO/actions/workflows | jq '.workflows[] | .name,.id'
# list runs
#gh api -X GET /repos/$OWNER/$REPO/actions/workflows/$WORKFLOW_ID/runs | jq '.workflow_runs[] | .id'
# delete all runs for a workflow
#gh api -X GET /repos/$OWNER/$REPO/actions/workflows/$WORKFLOW_ID/runs | jq '.workflow_runs[] | .id' | xargs -I{} gh api -X DELETE /repos/$OWNER/$REPO/actions/runs/{}
# delete all runs
#gh api -X GET /repos/$OWNER/$REPO/actions/runs | jq '.workflow_runs[] | .id' | xargs -I{} gh api -X DELETE /repos/$OWNER/$REPO/actions/runs/{}