Skip to content

Commit

Permalink
Update CircleCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
danthareja committed Oct 22, 2018
1 parent 8c115bb commit 2583f16
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@ jobs:
- image: circleci/node:6.10
steps:
- checkout
- run:
name: Validating PR
command: |
if [ -n "${CIRCLE_PR_NUMBER}" ]; then
curl https://api.github.com/repos/danthareja/contribute-to-open-source/pulls/$CIRCLE_PR_NUMBER > pull.json
node -e "
var pull = require('./pull.json');
if (pull.base.ref !== pull.user.login) {
console.log('Invalid PR');
process.exit(1);
}
"
else
echo "Not a PR build"
exit 1
fi
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
Expand Down

0 comments on commit 2583f16

Please sign in to comment.