Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ShotaKitazawa committed Sep 18, 2024
1 parent 5c130c4 commit aa5fff4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gitops-prd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:

- name: get tag name
id: get-tag-name
run: echo tag-name="${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
run: echo tag-name="${GITHUB_REF#refs/*/}" >> "$GITHUB_OUTPUT"

- name: Update image-tags
working-directory: dreamkast-infra/ecspresso/prod
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/reviewapp-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
PREFIX: ui-
shell: bash -xe {0}
run: |
set -e
EXPECTED="$(gh pr list --repo ${{ github.repository }} --label 'reviewapps' --json number --jq '.[].number' | sed 's/^\(.*\)$/'$PREFIX'\1/g')"
EXPECTED="$(gh pr list --repo ${{ github.repository }} --label 'reviewapps' --json number --jq '.[].number' | sed 's/^\(.*\)$/'"$PREFIX"'\1/g')"
# shellcheck disable=SC2010,SC2086
ACTUAL="$(ls | grep -E ^$PREFIX)"
# If present only in ACTUAL, cleanup
Expand All @@ -53,9 +53,9 @@ jobs:
for exp in $EXPECTED; do
[ "$act" = "$exp" ] && EXIST=true
done
[ $EXIST = true ] && continue
bash -x $act/cleanup.sh
rm -rf $act
[ "$EXIST" = "true" ] && continue
bash -x "$act/cleanup.sh"
rm -rf "$act"
done
- name: Commit files
Expand Down

0 comments on commit aa5fff4

Please sign in to comment.