Skip to content

Commit 5cefd33

Browse files
author
Jack Yuan
committed
change pr method (test)
1 parent 2e5531d commit 5cefd33

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

github-action-build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ EOL
8686
curl -o pull-request.txt https://api.github.com/repos/$ciOrg/$ciRepo/pulls
8787
# if [ ${secure_env} != true ]; then
8888
# echo "No deploy -- secure environment variables not available"
89-
if grep -q "url" pull-request.txt >/dev/null 2>&1 then
89+
if grep -q "url" pull-request.txt >/dev/null 2>&1
90+
then
9091
echo "No deploy -- pull request detected"
91-
elif [ ${repo_fork} != "$ciOrg/$ciRepo" ]; then
92+
elif [ ${repo_fork} != "$ciOrg/$ciRepo" ]
93+
then
9294
echo "No deploy -- repository fork: ${repo_fork} != $ciOrg/$ciRepo"
9395
else
9496
echo "All checks passed for artifact deployment"

0 commit comments

Comments
 (0)