Skip to content

Commit

Permalink
Merge pull request #2 from betrybe/add-target-branch-to-script
Browse files Browse the repository at this point in the history
Add env var to specify target branch
  • Loading branch information
LeandroLM authored Feb 21, 2020
2 parents 5cc5ad5 + c09a6bc commit 5052388
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
set -x

git clone https://github.com/$GITHUB_REPOSITORY-tests.git /project-tests
TEST_REPOSITORY_BRANCH=${TEST_REPOSITORY_BRANCH:-master}

git clone --branch $TEST_REPOSITORY_BRANCH https://github.com/$GITHUB_REPOSITORY-tests.git /project-tests
rm -rf /project-tests/.git
cp -r /project-tests/* .
npm install
Expand Down

0 comments on commit 5052388

Please sign in to comment.