From b2e0635ce276a5ed4afd6e61b6bcbc9ae9d8cd7d Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Tue, 18 May 2021 17:16:53 -0400 Subject: [PATCH] Escape build info values Currently the action fails with a `line 1: syntax error near unexpected token `('` error. Just because our build name is: `Spring Integration - Main (5.5.x) - Default Job` See more info in this SO: https://stackoverflow.com/questions/61795201/github-action-failed-syntax-error-near-unexpected-token * Wrap `Build Name` value into double quote --- .github/workflows/central-sync-create.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/central-sync-create.yml b/.github/workflows/central-sync-create.yml index 187a8f8998..2d31cdcaa7 100644 --- a/.github/workflows/central-sync-create.yml +++ b/.github/workflows/central-sync-create.yml @@ -28,7 +28,7 @@ jobs: # Extract build id from input - name: Extract Build Id run: | - echo JFROG_CLI_BUILD_NAME=${{ github.event.inputs.buildName }} >> $GITHUB_ENV + echo JFROG_CLI_BUILD_NAME="${{ github.event.inputs.buildName }}" >> $GITHUB_ENV echo JFROG_CLI_BUILD_NUMBER=${{ github.event.inputs.buildNumber }} >> $GITHUB_ENV # Download released files