mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
simplify Migrate source clone (#1450)
This commit is contained in:
parent
4d75332b66
commit
47b1c264ea
1 changed files with 1 additions and 2 deletions
|
|
@ -24,8 +24,7 @@ steps:
|
|||
targetType: inline
|
||||
script: |
|
||||
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"
|
||||
git clone --single-branch -b "$SYSTEM_PULLREQUEST_SOURCEBRANCH" "$FORKURI" .
|
||||
|
||||
- task: Bash@3
|
||||
displayName: abort if just migrated
|
||||
|
|
|
|||
Loading…
Reference in a new issue