We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bdc4de6 + 3fb8ff6 commit f65ddb3Copy full SHA for f65ddb3
1 file changed
deploy.sh
@@ -114,9 +114,11 @@ if [[ "$BUILD_DIR" = false ]]; then
114
git config --global user.name "10upbot on GitHub"
115
116
# Ensure git archive will pick up any changed files in the directory try.
117
- test $(git ls-files --deleted) && git rm $(git ls-files --deleted)
118
- git add .
119
- git commit -m "Include build step changes"
+ test $(git ls-files --deleted) && git rm $(git ls-files --deleted)
+ if [ -n "$(git status --porcelain --untracked-files=all)" ]; then
+ git add .
120
+ git commit -m "Include build step changes"
121
+ fi
122
123
# If there's no .gitattributes file, write a default one into place
124
if [[ ! -e "$GITHUB_WORKSPACE/.gitattributes" ]]; then
0 commit comments