From cc0323a8c40509986f1d3a182fdefe98c40756e5 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Mon, 17 May 2021 13:11:38 -0400 Subject: [PATCH] Try to escape build info values Currently the action fails with a `line 1: syntax error near unexpected token `('` error. Just because our build name is like this: `Spring AMQP - Main (2.3.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 in attempt to avoid unexpected token error --- .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 187a8f89..2d31cdca 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