From 83129b4c8b10f44b57eca3c4a4a3c6f6996aa23b Mon Sep 17 00:00:00 2001 From: Alex Lokshin Date: Wed, 9 Oct 2024 10:11:57 -0400 Subject: [PATCH] feat: Fix happy-cleanup aws profile setting (#319) --- .github/actions/happy-cleanup/action.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/happy-cleanup/action.yml b/.github/actions/happy-cleanup/action.yml index 21bc0cad..20a182c2 100644 --- a/.github/actions/happy-cleanup/action.yml +++ b/.github/actions/happy-cleanup/action.yml @@ -58,20 +58,20 @@ runs: set -o pipefail date=`date +%Y-%m-%d'T'%H:%M'Z' -d "$TIME ago"` - list="happy list --output json --env $ENV" + list="happy list --aws-profile "" --output json --env $ENV" force="" if [[ ${ALL} ]]; then - list="happy list --all --output json --env $ENV" + list="happy list --aws-profile "" --all --output json --env $ENV" force="--force" fi if [[ ! -z ${EXCLUDE} ]]; then for i in $($(echo $list) | jq -r --arg date "$date" --arg exclude "$EXCLUDE" '.[] | select(.last_updated < $date) | select(any(.stack; contains($exclude))|not) | .stack'); do echo "Deleting stack: $i" - happy delete $i --env $ENV "$force" + happy delete --aws-profile "" $i --env $ENV "$force" done exit fi for i in $($(echo $list) | jq -r --arg date "$date" '.[] | select(.last_updated < $date) | .stack'); do echo "Deleting stack: $i" - happy delete $i --env $ENV "$force" - done \ No newline at end of file + happy delete --aws-profile "" $i --env $ENV "$force" + done