[CI] Undo a merge done by Github/VSTS when we do the checkout so that both jobs (build & test) use the same commit. (#14443)

This commit is contained in:
Manuel de la Pena 2022-03-22 17:41:03 -04:00 коммит произвёл GitHub
Родитель 7d500da2bf
Коммит 28b9d24b07
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -49,6 +49,13 @@ steps:
submodules: recursive
path: s/xamarin-macios
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
- pwsh: |
git reset --hard HEAD^2
displayName: "Undo Github merge"
workingDirectory: $(System.DefaultWorkingDirectory)/xamarin-macios
- checkout: maccore
clean: true
persistCredentials: true # hugely important, else there are some scripts that check a single file from maccore that will fail

Просмотреть файл

@ -51,6 +51,13 @@ steps:
- checkout: self
path: s/xamarin-macios
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
- pwsh: |
git reset --hard HEAD^2
displayName: "Undo Github merge"
workingDirectory: $(System.DefaultWorkingDirectory)/xamarin-macios
- checkout: maccore
persistCredentials: true # hugely important, else there are some scripts that check a single file from maccore that will fail