From 6f311e9c92655a2a974baa6e9a6cf3825b6b09ab Mon Sep 17 00:00:00 2001 From: Vignesh Rao Date: Mon, 13 May 2024 14:48:17 -0500 Subject: [PATCH] Try using `eval` --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 52b116c..59c0c07 100644 --- a/action.yml +++ b/action.yml @@ -43,7 +43,8 @@ runs: - name: Run Asset run: | - ./asset --debug ${{ inputs.debug }} --owner ${{ inputs.owner }} --repo ${{ inputs.repo }} --exclude "${{ inputs.excludeHostnames }}" + CMD="./asset --debug ${{ inputs.debug }} --owner ${{ inputs.owner }} --repo ${{ inputs.repo }} --exclude \"${{ inputs.excludeHostnames }}\"" + eval "${CMD}" exit_code=$? if [ $exit_code -eq 0 ]; then echo "Execution successful"