mirror of https://github.com/CrimsonTome/tldr.git
Fix PULL_REQUEST_ID reference when not set
parent
59c293a706
commit
68f8e470d1
|
@ -110,7 +110,7 @@ MSG_NOT_MD='The file `%s` does not have a `.md` extension.\n'
|
||||||
|
|
||||||
PLATFORMS=$(ls pages/)
|
PLATFORMS=$(ls pages/)
|
||||||
|
|
||||||
if [ "$CI" = "true" ] && [ "$GITHUB_REPOSITORY" = "tldr-pages/tldr" ] && [ "$PULL_REQUEST_ID" != "false" ]; then
|
if [ "$CI" = "true" ] && [ "$GITHUB_REPOSITORY" = "tldr-pages/tldr" ] && [ "$PULL_REQUEST_ID" != "" ]; then
|
||||||
check_diff
|
check_diff
|
||||||
check_structure
|
check_structure
|
||||||
else
|
else
|
||||||
|
|
|
@ -43,7 +43,7 @@ function run_checks_pr {
|
||||||
# MAIN
|
# MAIN
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
if [ "$CI" = "true" ] && [ "$GITHUB_REPOSITORY" = "tldr-pages/tldr" ] && [ "$PULL_REQUEST_ID" != "false" ]; then
|
if [ "$CI" = "true" ] && [ "$GITHUB_REPOSITORY" = "tldr-pages/tldr" ] && [ "$PULL_REQUEST_ID" != "" ]; then
|
||||||
run_checks_pr
|
run_checks_pr
|
||||||
run_tests_pr
|
run_tests_pr
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue