Skip to content

Commit

Permalink
bash formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahSiegel committed Apr 5, 2023
1 parent dc299c2 commit 8f98db9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/housekeeper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fi
echo "ignore_branch_workflows: $ignore_branch_workflows"

if [[ $ignore_branch_workflows = true ]]; then
files=$(ls -1 .github/workflows/ | sed 's/^/and .path != \".github\/workflows\//;s/$/\"/')
files=$(ls -1 .github/workflows/ | sed 's/^/and .path != \".github\/workflows\//;s/$/\"/')
else
files=""
fi
Expand Down Expand Up @@ -57,8 +57,7 @@ output=($(echo $output | tr " " "\n"))
output=${output[@]:$retain_run_count2}

# Delete or echo run ids
for id in $output
do
for id in $output; do
if [[ $dry_run = false ]]; then
[[ $id != ".git"* ]] && gh api --silent $runs/$id -X DELETE
else
Expand All @@ -67,4 +66,4 @@ do
[[ $id = ".git"* ]] && summary+=" * $id" || summary+=" $id\n"
done

echo "housekeeping_output=$(echo "${summary}")" >> $GITHUB_OUTPUT
echo "housekeeping_output=$(echo "${summary}")" >>$GITHUB_OUTPUT

0 comments on commit 8f98db9

Please sign in to comment.