Skip to content

Commit cc97a0b

Browse files
author
Jack Yuan
committed
change pr method (test)
1 parent 753bc22 commit cc97a0b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

github-action-build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ EOL
8484
ciPrefix=${ciURL%/*}
8585
ciOrg=${ciPrefix##*/}
8686
curl -o pull-request.txt https://api.github.com/repos/$ciOrg/$ciRepo/pulls
87-
# if [ ${secure_env} != true ]; then
88-
# echo "No deploy -- secure environment variables not available"
89-
if [ grep -q "url" pull-request.txt >/dev/null 2>&1 ]; then
87+
if [ ${secure_env} != true ]; then
88+
echo "No deploy -- secure environment variables not available"
89+
elif [ grep -o "url" pull-request.txt >/dev/null 2>&1 ]; then
9090
echo "No deploy -- pull request detected"
9191
elif [ ${repo_fork} != "$ciOrg/$ciRepo" ]; then
9292
echo "No deploy -- repository fork: ${repo_fork} != $ciOrg/$ciRepo"

0 commit comments

Comments
 (0)