mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-23 12:14:24 +08:00
55bed0a8db
Signed-off-by: David Sterba <dsterba@suse.com>
17 lines
500 B
Bash
Executable File
17 lines
500 B
Bash
Executable File
#!/bin/sh -xe
|
|
#
|
|
# Keep last runs of master and coverage-test
|
|
|
|
workflow='Code coverage 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 branch in master coverage-test; do
|
|
for id in $(gh run -R "$repo" list --workflow "$workflow" --branch "$branch" --json databaseId | jq '.[1:] | .[].databaseId'); do
|
|
echo "Delete run $id"
|
|
gh run -R "$repo" delete "$id"
|
|
done
|
|
done
|