Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenFisca-France-Reforms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur socio-fiscal
Adaptations OpenFisca
OpenFisca-France-Reforms
Commits
d69cfcfe
Commit
d69cfcfe
authored
Oct 14, 2021
by
Emmanuel Raviart
Browse files
Options
Downloads
Patches
Plain Diff
Trigger @openfisca/json-model pipeline only when a new tag has been created.
parent
3960e47e
No related branches found
No related tags found
1 merge request
!2
Rework CI
Pipeline
#1058
passed
Oct 14, 2021
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+5
-0
5 additions, 0 deletions
.gitlab-ci.yml
src/scripts/sync_with_openfisca_france.ts
+1
-1
1 addition, 1 deletion
src/scripts/sync_with_openfisca_france.ts
with
6 additions
and
1 deletion
.gitlab-ci.yml
+
5
−
0
View file @
d69cfcfe
...
@@ -100,4 +100,9 @@ sync_with_openfisca_france:
...
@@ -100,4 +100,9 @@ sync_with_openfisca_france:
trigger_openfisca_json_model
:
trigger_openfisca_json_model
:
stage
:
trigger
stage
:
trigger
only
:
# OpenFisca-JSON-Model pipeline should only be called
# when a new version branch and version tag has been created.
# Here we assume that tags are only created for versions.
-
tags
trigger
:
openfisca/json-model
trigger
:
openfisca/json-model
This diff is collapsed.
Click to expand it.
src/scripts/sync_with_openfisca_france.ts
+
1
−
1
View file @
d69cfcfe
...
@@ -75,7 +75,7 @@ async function main() {
...
@@ -75,7 +75,7 @@ async function main() {
await
fs
.
writeFile
(
projectTomlPath
,
projectToml
,
"
utf-8
"
)
await
fs
.
writeFile
(
projectTomlPath
,
projectToml
,
"
utf-8
"
)
await
$
`git add .`
await
$
`git add .`
// Commit updated pyproject.toml
s
in a new branch tagged with version number.
// Commit updated pyproject.toml in a new branch tagged with version number.
const
branch
=
nextVersion
.
replace
(
/
\.
/g
,
"
_
"
)
const
branch
=
nextVersion
.
replace
(
/
\.
/g
,
"
_
"
)
await
$
`git switch -c
${
branch
}
`
await
$
`git switch -c
${
branch
}
`
await
$
`git commit -m "
${
nextVersion
}
(openfisca-france@
${
openFiscaFranceVersion
}
)"`
await
$
`git commit -m "
${
nextVersion
}
(openfisca-france@
${
openFiscaFranceVersion
}
)"`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment