mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-24 04:34:15 +08:00
b28ce934b0
- use proper json array filtering - use long parameter names - add comments - add cleaner for coverage runs - keep last run for branches with badges at README Signed-off-by: David Sterba <dsterba@suse.com>
15 lines
430 B
Bash
Executable File
15 lines
430 B
Bash
Executable File
#!/bin/sh -xe
|
|
#
|
|
# Delete all failed devel runs
|
|
|
|
workflow='Devel build and tests'
|
|
repo="kdave/btrfs-progs"
|
|
|
|
type -p gh > /dev/null || { echo "ERROR: gh tool not found"; exit 1; }
|
|
type -p jq > /dev/null || { echo "ERROR: jq tool not found"; exit 1; }
|
|
|
|
for id in $(gh run -R "$repo" list --workflow "$workflow" --status failure --json databaseId | jq '.[].databaseId'); do
|
|
echo "Delete run $id"
|
|
gh run -R "$repo" delete "$id"
|
|
done
|