mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
use jq to strip quotes
This commit is contained in:
parent
87f1bb25e3
commit
a0bcc67451
1 changed files with 1 additions and 3 deletions
|
|
@ -17,9 +17,7 @@ steps:
|
|||
- checkout: none
|
||||
|
||||
- bash: |
|
||||
FORKURI=$(curl -X GET https://api.github.com/repos/$BUILD_REPOSITORY_NAME/pulls/$SYSTEM_PULLREQUEST_PULLREQUESTNUMBER | jq '.head.repo.clone_url')
|
||||
FORKURI="${FORKURI%\"}"
|
||||
FORKURI="${FORKURI#\"}"
|
||||
FORKURI=$(curl -X GET https://api.github.com/repos/$BUILD_REPOSITORY_NAME/pulls/$SYSTEM_PULLREQUEST_PULLREQUESTNUMBER | jq -r '.head.repo.clone_url')
|
||||
git clone "$FORKURI" .
|
||||
git checkout $SYSTEM_PULLREQUEST_SOURCEBRANCH
|
||||
displayName: checkout source branch
|
||||
|
|
|
|||
Loading…
Reference in a new issue