Skip to content
Snippets Groups Projects
Commit 4b412bb3 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Restore master branch before running CI.

parent 5bcf664d
Branches
Tags
No related merge requests found
Pipeline #1038 failed
......@@ -53,8 +53,10 @@ sync_with_openfisca_france:
- git config --global user.email "admin+openfisca-france-reforms-ci@tax-benefit.org"
- git config --global user.name "OpenFisca-France Reforms CI"
# Reset current repo, because it may have been tranformed by a previous CI that failed.
- git switch master
- git diff origin/master
- git reset --hard origin/master
- git status
- git remote set-url origin git@git.leximpact.dev:openfisca/openfisca-france-reforms.git
- npm install
......
......@@ -64,6 +64,7 @@ async function main() {
await $`git commit -m "Set openfisca-france version to ${openFiscaFranceVersion}."`
await $`git tag -a "${newVersion}" -m "${newVersion} (openfisca-france@${openFiscaFranceVersion})"`
await $`git push --set-upstream --tags origin ${branch}`
await $`git switch master`
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment