Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix: create version.json only once
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Jul 27, 2023
1 parent d6b8808 commit 567d8a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/copy-templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ for f in $(jq -r '.config.files[]' <<< "$CONTEXT"); do
if [[ ! -f "$REPO/$f" ]]; then
echo "First deployment.\n"
commit_msg="chore: add $f"
elif [[ "$f" == "version.json" ]]; then
echo "Version file. Skipping."
continue
else
status=$(cmp --silent $REPO/$f $tmp; echo $?)
if [[ $status -ne 0 ]]; then
Expand Down

0 comments on commit 567d8a4

Please sign in to comment.