diff --git a/.azure-pipelines/update-refdata.yml b/.azure-pipelines/update-refdata.yml index 7c395b214e0..d75baed4f52 100644 --- a/.azure-pipelines/update-refdata.yml +++ b/.azure-pipelines/update-refdata.yml @@ -34,17 +34,18 @@ jobs: - bash: | cd $(refdata.dir) git remote add fork https://$(bot_token)@github.com/tardis-bot/tardis-refdata - git checkout -b pr-$(pr.number) + git checkout -B pr-$(pr.number) displayName: 'Set up new branch' - - bash: | - cd $(tardis.dir) - source activate tardis - pytest tardis --tardis-refdata=$(refdata.dir) --generate-reference - displayName: 'Generate reference data on a new branch' + #- bash: | + # cd $(tardis.dir) + # source activate tardis + # pytest tardis --tardis-refdata=$(refdata.dir) --generate-reference + # displayName: 'Generate reference data on a new branch' - bash: | cd $(refdata.dir) + touch foo.txt git add -A git config --local user.email "tardis.sn.bot@gmail.com" git config --local user.name "tardis-bot" @@ -57,3 +58,10 @@ jobs: echo "$(bot_token)" | gh auth login --with-token gh pr create --repo tardis-sn/tardis-refdata --head tardis-bot:pr-$(pr.number) --title "Automated Update (PR $(pr.number))" --body "_Pull request automatically generated by [#$(pr.number)](https://github.com/tardis-sn/tardis/pull/$(pr.number))_" displayName: 'Propose changes via pull request' + condition: succeeded() + + - bash: | + cd $(refdata.dir) + git push fork pr-$(pr.number) + displayName: 'Force push changes to existing branch' + condition: failed()