From 20a6569cbe91181cca98c9298a072499468545ce Mon Sep 17 00:00:00 2001 From: Sakura Akeno Isayeki Date: Sat, 12 Aug 2023 00:03:10 +0200 Subject: [PATCH] fix: Remove ANSI escape sequences in Build summary report fix: Fix formatting issue in run-setup-successful.yml The commit fixes a formatting issue in the `run-setup-successful.yml` file. The incorrect backticks were causing an error, so they have been replaced with correct ones. build: Update run-setup-successful.yml to include escaped command output The commit updates the `run-setup-successful.yml` file by modifying the command output to be properly escaped. This ensures that special characters are handled correctly when generating the step summary. co-authored-by: Fydar signed-off-by: Sakura Akeno Isayeki --- .github/workflows/run-setup-successful.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run-setup-successful.yml b/.github/workflows/run-setup-successful.yml index ef9c5a9..2fc89f5 100644 --- a/.github/workflows/run-setup-successful.yml +++ b/.github/workflows/run-setup-successful.yml @@ -1,4 +1,4 @@ -name: 'Setup MoltenObsidian CLI (Should be: Successful)' +name: 'Setup MoltenObsidian CLI (Should be: Successful)' on: - push - workflow_dispatch @@ -37,6 +37,6 @@ jobs: echo "Installed Version: \`$(moltenobsidian --version)\`" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "### Output Help:" >> $GITHUB_STEP_SUMMARY - echo "\`\`\`\" >> $GITHUB_STEP_SUMMARY - echo $(moltenobsidian --help) >> $GITHUB_STEP_SUMMARY - echo "\`\`\`\" >> $GITHUB_STEP_SUMMARY \ No newline at end of file + echo "\`\`\`" >> $GITHUB_STEP_SUMMARY + echo "$(moltenobsidian --help | sed 's/\x1B[@A-Z\\\]^_]\|\x1B\[[0-9:;<=>?]*[-!"#$%&'"'"'()*+,.\/]*[][\\@A-Z^_`a-z{|}~]//g')" >> $GITHUB_STEP_SUMMARY + echo "\`\`\`" >> $GITHUB_STEP_SUMMARY