We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64a48d4 commit 6a05648Copy full SHA for 6a05648
1 file changed
github-action-build.sh
@@ -86,9 +86,9 @@ EOL
86
git config --get remote.origin.url
87
curl -o pull-request.txt https://api.github.com/repos/$ciOrg/$ciRepo/pulls >/dev/null 2>&1 # Check for pull requests
88
curl -o secure-env.txt https://api.github.com/orgs/$ciOrg/$ciRepo/secrets >/dev/null 2>&1 # Check for secure env var
89
- if [ ! grep -q "documentation_url" secure-env.txt ]; then
+ if ! grep -q "documentation_url" secure-env.txt; then
90
echo "No deploy -- secure environment variables not available"
91
- elif [ grep -q "url" pull-request.txt ]; then
+ elif grep -q "url" pull-request.txt; then
92
echo "No deploy -- pull request detected"
93
elif [ ${repo_fork} != "$ciOrg/$ciRepo" ]; then
94
echo "No deploy -- repository fork: ${repo_fork} != $ciOrg/$ciRepo"
0 commit comments