Skip to content

Commit

Permalink
Try using eval
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed May 13, 2024
1 parent e65cb1a commit 6f311e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6f311e9

Please sign in to comment.