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 6abcdd4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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
12 changes: 6 additions & 6 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 All @@ -74,7 +74,7 @@ jobs:
- name: Set current unixtime as env variable
env:
TZ: 'Asia/Tokyo'
run: echo UNIXTIME="$(date +'+%s')" >> $GITHUB_ENV
run: echo UNIXTIME="$(date +'+%s')" >> "$GITHUB_ENV"

- name: Push changes
if: steps.commit_files.outcome == 'success'
Expand Down

0 comments on commit 6abcdd4

Please sign in to comment.