Skip to content

Commit

Permalink
added git status to the publishing script for better debugability
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Oct 9, 2022
1 parent 8f81977 commit 57951fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deployment/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ git checkout deployment --
rm -fr "./$TARGET"
mv $tmp_dir/* .
git add .
echo "current git status"
git status

# --porcelain returns nothing if there are no changes
if [ -z "$(git status --porcelain)" ]; then
Expand All @@ -55,4 +57,4 @@ else
git commit -m "Updated the staging deployment for pr-$2"
fi

git push
git push

0 comments on commit 57951fe

Please sign in to comment.