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
a213f1f1
Unverified
Commit
a213f1f1
authored
Jun 10, 2021
by
Matheus Felipe
Committed by
GitHub
Jun 10, 2021
Browse files
Remove unused main.yml file
parent
486822da
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/main.sh
deleted
100755 → 0
View file @
486822da
#!/bin/bash
FORMAT_FILE
=
../README.md
echo
"running format validation..."
./validate_format.py
$FORMAT_FILE
if
[[
$?
!=
0
]]
;
then
echo
"format validation failed!"
exit
1
fi
echo
"format validation passed!"
if
[
"
$TRAVIS_PULL_REQUEST
"
==
"false"
]
;
then
echo
"running on
$TRAVIS_BRANCH
branch - skipping Pull Request logic"
exit
0
fi
echo
"running on Pull Request #
$TRAVIS_PULL_REQUEST
"
DIFF_URL
=
"https://patch-diff.githubusercontent.com/raw/toddmotto/public-apis/pull/
$TRAVIS_PULL_REQUEST
.diff"
curl
$DIFF_URL
>
diff.txt
echo
"------- BEGIN DIFF -------"
cat
diff.txt
echo
"-------- END DIFF --------"
cat
diff.txt | egrep
"
\+
"
>
additions.txt
echo
"------ BEGIN ADDITIONS -----"
cat
additions.txt
echo
"------- END ADDITIONS ------"
LINK_FILE
=
additions.txt
echo
"running link validation..."
./validate_links.py
$LINK_FILE
if
[[
$?
!=
0
]]
;
then
echo
"link validation failed!"
exit
1
else
echo
"link validation passed!"
fi
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