mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
specify targetType for Bash tasks
This commit is contained in:
parent
47f9b70f57
commit
4552163cbb
1 changed files with 7 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ jobs:
|
|||
- task: Bash@3
|
||||
displayName: checkout source branch
|
||||
inputs:
|
||||
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" .
|
||||
|
|
@ -35,6 +36,7 @@ jobs:
|
|||
env:
|
||||
GITHUBNAME: $(GITHUBNAME)
|
||||
inputs:
|
||||
targetType: inline
|
||||
script: |
|
||||
LASTAUTHOR=$(git log -n 1 --pretty=format:"%an")
|
||||
LASTMSG=$(git log -n 1 --pretty=format:"%s")
|
||||
|
|
@ -67,6 +69,7 @@ jobs:
|
|||
GITHUBNAME: $(GITHUBNAME)
|
||||
GITHUBEMAIL: $(GITHUBEMAIL)
|
||||
inputs:
|
||||
targetType: inline
|
||||
script: |
|
||||
git config --global user.name "$GITHUBNAME"
|
||||
git config --global user.email "$GITHUBEMAIL"
|
||||
|
|
@ -76,6 +79,7 @@ jobs:
|
|||
env:
|
||||
GITHUBNAME: $(GITHUBNAME)
|
||||
inputs:
|
||||
targetType: inline
|
||||
workingDirectory: server/src
|
||||
script: |
|
||||
MIGLIST=$(dotnet ef migrations list -p FilterLists.Data.Migrations -s FilterLists.Api)
|
||||
|
|
@ -89,6 +93,7 @@ jobs:
|
|||
- task: Bash@3
|
||||
displayName: merge upstream data
|
||||
inputs:
|
||||
targetType: inline
|
||||
script: |
|
||||
git remote add upstream https://github.com/collinbarrett/FilterLists.git
|
||||
git fetch upstream
|
||||
|
|
@ -111,6 +116,7 @@ jobs:
|
|||
- task: Bash@3
|
||||
displayName: commit or abandon migration
|
||||
inputs:
|
||||
targetType: inline
|
||||
script: |
|
||||
DIFF=$(git status -s | wc -l)
|
||||
echo "$DIFF file(s) changed"
|
||||
|
|
@ -185,6 +191,7 @@ jobs:
|
|||
env:
|
||||
GITHUBPAT: $(GITHUBPAT)
|
||||
inputs:
|
||||
targetType: inline
|
||||
script: |
|
||||
git config --global credential.helper store
|
||||
echo "https://$GITHUBPAT:x-oauth-basic@github.com" >> ~/.git-credentials
|
||||
|
|
|
|||
Loading…
Reference in a new issue