Modify appveyor to do git status before attempting commit

This commit is contained in:
Daniel Donenfeld 2019-02-11 15:45:15 -08:00
parent 2bae55a261
commit 98fc3647e7

View File

@ -140,6 +140,7 @@ on_success:
- git checkout %APPVEYOR_REPO_BRANCH% - git checkout %APPVEYOR_REPO_BRANCH%
- git add "asm/*" - git add "asm/*"
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- (git commit -m "[skip ci] Update ASM for %APPVEYOR_BUILD_WORKER_IMAGE%_%GSL_CXX_STANDARD%_%USE_TOOLSET%_%PLATFORM%_%CONFIGURATION%" && git push) || (git status & git diff & echo NO CHANGES TO COMMIT) - git status
- (git commit -m "[skip ci] Update ASM for %APPVEYOR_BUILD_WORKER_IMAGE%_%GSL_CXX_STANDARD%_%USE_TOOLSET%_%PLATFORM%_%CONFIGURATION%" && git push) || (echo NO CHANGES TO COMMIT)
deploy: off deploy: off