Skip to content

Commit

Permalink
#429 try to fix 'Add version to versions.json' step
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSAMPERE committed Sep 27, 2022
1 parent 664df3a commit 8a62785
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ variables:
QGIS_IMAGE: qgis/qgis
pythonVersion: "3.7"
vmImageName: "windows-2019"
TAG_NAME: $[replace(variables['Build.SourceBranch'], 'refs/tags/', '')]
# TAG_NAME: $[replace(variables['Build.SourceBranch'], 'refs/tags/', '')]
TAG_NAME: "3.4.1"
# ZIP_SUFFIX: $[replace(variables['TAG_NAME'], '.', '_')]
ZIP_SUFFIX: $[replace(variables['TAG_NAME'], '/', '_')]
ZIP_SUFFIX: "3_4_1"
ZIP_NAME: $(SERVICE_NAME)-$(ZIP_SUFFIX).zip
azureSubscription : $(AZURE_SUBSCRIPTION)

Expand Down Expand Up @@ -273,7 +274,7 @@ stages:
- script : cat version.json | jq --arg date "$(date)" '."release-date" += $date' > version_date.json
displayName : Add date to version.json

- script: cat versions.json | jq --argjson version "$(<version_date.json)" '.$(SERVICE_NAME)."$(TAG_NAME)" += $version' > new_versions.json
- script: cat versions.json | jq --argjson version "$(<version_date.json)" '."$(SERVICE_NAME)"."$(TAG_NAME)" += $version' > new_versions.json
displayName: Add version to versions.json

- script : rm -rf versions.json && mv new_versions.json versions.json
Expand Down

0 comments on commit 8a62785

Please sign in to comment.