From e01cb90750c53b0c69742a4895d30b3af2fb0692 Mon Sep 17 00:00:00 2001 From: niden Date: Mon, 18 Dec 2023 15:08:02 -0600 Subject: [PATCH] trying a json approach --- .github/workflows/deploy-documents.yml | 13 ++----------- VERSION | 2 +- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy-documents.yml b/.github/workflows/deploy-documents.yml index 795d8e705..a68c09c63 100644 --- a/.github/workflows/deploy-documents.yml +++ b/.github/workflows/deploy-documents.yml @@ -57,18 +57,9 @@ jobs: id: determine-versioning run: | # Read the first line from the VERSION file - LINE=$(head -n 1 ./VERSION) - - # Extract version and alias using parameter expansion - VERSION="${LINE%%|*}" - ALIAS="${LINE#*|}" - - # Print the extracted values for verification - echo "Version: $VERSION" - echo "Alias: $ALIAS" - + DATA=$(head -n 1 ./VERSION) # Set the GitHub Actions environment variable - echo "data={\"version\":\"$VERSION\", \"alias\":\"$ALIAS\"}" >> $GITHUB_ENV + echo "data=${DATA}" >> $GITHUB_ENV - name: Deploy if: fromJson(steps.determine-versioning.outputs.data).version != null diff --git a/VERSION b/VERSION index c40e547fc..543fe08e8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.4| +{"version":"5.4", "alias":""}