diff --git a/.github/workflows/deploy-documents.yml b/.github/workflows/deploy-documents.yml index 9258bacdb..795d8e705 100644 --- a/.github/workflows/deploy-documents.yml +++ b/.github/workflows/deploy-documents.yml @@ -56,10 +56,19 @@ jobs: - name: Determine versioning parameters id: determine-versioning run: | + # Read the first line from the VERSION file LINE=$(head -n 1 ./VERSION) - VERSION="${LINE%|*}" + + # Extract version and alias using parameter expansion + VERSION="${LINE%%|*}" ALIAS="${LINE#*|}" - echo 'data={"version":"$VERSION", "alias":"$ALIAS"}' >> $GITHUB_OUTPUT + + # Print the extracted values for verification + echo "Version: $VERSION" + echo "Alias: $ALIAS" + + # Set the GitHub Actions environment variable + echo "data={\"version\":\"$VERSION\", \"alias\":\"$ALIAS\"}" >> $GITHUB_ENV - name: Deploy if: fromJson(steps.determine-versioning.outputs.data).version != null