diff --git a/.github/workflows/schema_release.yml b/.github/workflows/schema_release.yml index 8e496e4..b29b4ba 100644 --- a/.github/workflows/schema_release.yml +++ b/.github/workflows/schema_release.yml @@ -12,6 +12,16 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v4 + - name: Set schema versions + run: | + if [ "${GITHUB_REF_TYPE}" == "tag" ] ; then + TAG=${GITHUB_REF_NAME} + for schema in Schemas/*.schema.json; do + ( + sed -i 's/0.0.0-b0/'"$TAG"'/' $schema + ) + done + fi - name: Github Release uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15 with: diff --git a/Schemas/argocd-apps.schema.json b/Schemas/argocd-apps.schema.json index 6344883..3b8ef34 100644 --- a/Schemas/argocd-apps.schema.json +++ b/Schemas/argocd-apps.schema.json @@ -68,7 +68,7 @@ "services", "ec-services" ], - "title": "Values", + "title": "argocd-apps 0.0.0-b0", "type": "object" } \ No newline at end of file diff --git a/Schemas/ioc-instance.schema.json b/Schemas/ioc-instance.schema.json index ab84fe5..cefae70 100644 --- a/Schemas/ioc-instance.schema.json +++ b/Schemas/ioc-instance.schema.json @@ -1,5 +1,5 @@ { - "title": "Values", + "title": "ioc-instance 0.0.0-b0", "type": "object", "$schema": "http://json-schema.org/schema#", "$ref": "#/$defs/service",