mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-12-06 02:09:04 +00:00
Remove is_defined()
This commit is contained in:
parent
908446c002
commit
2fb839c669
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user