Skip to content

Commit

Permalink
test calling the pipeline multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
epassaro committed Feb 22, 2022
1 parent a399a80 commit 2b9b8af
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .azure-pipelines/update-refdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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()

0 comments on commit 2b9b8af

Please sign in to comment.