Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
30 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,4 +69,7 @@ target/ | |
|
||
# node.js | ||
node_modules/ | ||
.env | ||
.env | ||
|
||
|
||
fa16-repo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# thanks to https://gist.github.com/domenic/ec8b0fc8ab45f39403dd | ||
#!/bin/sh | ||
set -e | ||
|
||
git clone --depth=1 "https://${GH_TOKEN}@github.com/fossasia/2016.fossasia.org" fa16-repo | ||
|
||
python scraper.py | ||
node schedule/generator > fa16-repo/schedule/index.html | ||
|
||
cd fa16-repo | ||
git config user.name "Travis CI" | ||
git config user.email "noreply+travis@fossasia.org" | ||
|
||
CHANGED=$(git status -s) | ||
if [ "$CHANGED" != "" ] | ||
then | ||
git commit -am '[Auto] updated schedule' | ||
git push origin gh-pages | ||
else | ||
echo "no changes" | ||
fi | ||
|
||
exit 0 |
This file was deleted.
Oops, something went wrong.