mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
Fix PULL_REQUEST_ID reference when not set
This commit is contained in:
parent
59c293a706
commit
68f8e470d1
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue