Fix PULL_REQUEST_ID reference when not set
This commit is contained in:
@@ -110,7 +110,7 @@ MSG_NOT_MD='The file `%s` does not have a `.md` extension.\n'
|
||||
|
||||
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_structure
|
||||
else
|
||||
|
@@ -43,7 +43,7 @@ function run_checks_pr {
|
||||
# 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_tests_pr
|
||||
else
|
||||
|
Reference in New Issue
Block a user