Skip to content

Commit 5f38074

Browse files
author
Matt Pearson
committed
Let 'append_hash' be set by an environment variable.
1 parent f920e3f commit 5f38074

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ main() {
88
fi
99

1010
#append commit hash to the end of message by default
11-
append_hash=true
11+
append_hash=${GIT_DEPLOY_APPEND_HASH:-true}
1212

1313
# Parse arg flags
1414
while : ; do

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ You can also define any of variables using environment variables and configurati
1717
- `GIT_DEPLOY_DIR`
1818
- `GIT_DEPLOY_BRANCH`
1919
- `GIT_DEPLOY_REPO`
20+
- `GIT_DEPLOY_APPEND_HASH`
2021

2122
The script will set these variables in this order of preference:
2223

0 commit comments

Comments
 (0)