Skip to main content
Sign in
Snippets Groups Projects
Commit 204612e9 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Merge branch 'handle_tag_push' into 'master'

Handle push of commit tag.

See merge request openfisca/openfisca-france-reforms!10
parents 96fcdc14 53b4d961
No related branches found
No related tags found
1 merge request!10Handle push of commit tag.
Pipeline #1091 passed
Pipeline: OpenFisca-JSON-Model

#1093

    ...@@ -15,6 +15,7 @@ export interface VersionObject { ...@@ -15,6 +15,7 @@ export interface VersionObject {
    const { const {
    CI_COMMIT_BRANCH, CI_COMMIT_BRANCH,
    CI_COMMIT_TAG,
    CI_DEFAULT_BRANCH, CI_DEFAULT_BRANCH,
    CI_JOB_TOKEN, CI_JOB_TOKEN,
    CI_MERGE_REQUEST_SOURCE_BRANCH_NAME, CI_MERGE_REQUEST_SOURCE_BRANCH_NAME,
    ...@@ -196,6 +197,7 @@ async function main() { ...@@ -196,6 +197,7 @@ async function main() {
    break break
    } }
    case "push": { case "push": {
    if (CI_COMMIT_BRANCH !== undefined) {
    console.log(`Push to branch ${CI_COMMIT_BRANCH}`) console.log(`Push to branch ${CI_COMMIT_BRANCH}`)
    // Reset current repo, because it may have been tranformed by a previous CI that failed. // Reset current repo, because it may have been tranformed by a previous CI that failed.
    ...@@ -221,6 +223,11 @@ async function main() { ...@@ -221,6 +223,11 @@ async function main() {
    await createNewBranchWithUpdatedVersions() await createNewBranchWithUpdatedVersions()
    await triggerOpenFiscaJsonModelPipeline() await triggerOpenFiscaJsonModelPipeline()
    } }
    } else if (CI_COMMIT_TAG !== undefined) {
    console.log(`Pushing commit tag "${CI_COMMIT_TAG}"…`)
    } else if (CI_COMMIT_TAG !== undefined) {
    console.log(`Unhandled push event.`)
    }
    break break
    } }
    default: default:
    ... ...
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment