Remove is_defined()

This commit is contained in:
Gömöri Zsolt 2019-11-01 11:11:19 +01:00
parent 908446c002
commit 2fb839c669

View File

@ -1,10 +1,5 @@
#!/bin/sh #!/bin/sh
echo "${INPUT_COMMIT_MESSAGE}"
echo "${INPUT_COMMIT_OPTIONS}"
echo "${INPUT_BRANCH}"
echo "${INPUT_FILE_PATTERN}"
set -eu set -eu
# Set up .netrc file with GitHub credentials # Set up .netrc file with GitHub credentials
@ -24,10 +19,6 @@ EOF
git config --global user.name "GitHub Actions" git config --global user.name "GitHub Actions"
} }
is_defined() {
[ ! -z "${1}" ]
}
# This section only runs if there have been file changes # This section only runs if there have been file changes
echo "Checking for uncommitted changes in the git working tree." echo "Checking for uncommitted changes in the git working tree."
if ! git diff --quiet if ! git diff --quiet