Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
c95aeef3
Commit
c95aeef3
authored
Jul 26, 2017
by
Dave Machado
Committed by
GitHub
Jul 26, 2017
Browse files
Reorder pull request conditional
parent
b653cccb
Changes
1
Show whitespace changes
Inline
Side-by-side
build/main.sh
View file @
c95aeef3
#!/bin/bash
#!/bin/bash
FORMAT_FILE
=
../README.md
FORMAT_FILE
=
../README.md
if
[
"
$TRAVIS_PULL_REQUEST
"
!=
"false"
]
;
then
if
[
"
$TRAVIS_PULL_REQUEST
"
==
"false"
]
;
then
echo
"running on
$TRAVIS_BRANCH
branch"
LINK_FILE
=
../README.md
else
echo
"running on Pull Request #
$TRAVIS_PULL_REQUEST
"
echo
"running on Pull Request #
$TRAVIS_PULL_REQUEST
"
DIFF_URL
=
"https://patch-diff.githubusercontent.com/raw/toddmotto/public-apis/pull/
$TRAVIS_PULL_REQUEST
.diff"
DIFF_URL
=
"https://patch-diff.githubusercontent.com/raw/toddmotto/public-apis/pull/
$TRAVIS_PULL_REQUEST
.diff"
curl
$DIFF_URL
>
diff.txt
curl
$DIFF_URL
>
diff.txt
...
@@ -12,9 +16,6 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
...
@@ -12,9 +16,6 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
cat
additions.txt
cat
additions.txt
echo
"------- END ADDITIONS ------"
echo
"------- END ADDITIONS ------"
LINK_FILE
=
additions.txt
LINK_FILE
=
additions.txt
else
echo
"running on
$TRAVIS_BRANCH
branch"
LINK_FILE
=
../README.md
fi
fi
echo
"running format validation..."
echo
"running format validation..."
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment