From 1d09eba5a846fb500fc0bd5759a98f7551e5a2f2 Mon Sep 17 00:00:00 2001 From: Dario Curreri Date: Thu, 19 Oct 2023 18:41:51 +0200 Subject: [PATCH 1/3] Add summary parameter to action --- action.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 8b698ae3c80..a22005ac243 100644 --- a/action.yml +++ b/action.yml @@ -27,6 +27,10 @@ inputs: description: 'Python Version specifier (PEP440) - e.g. "21.5b1"' required: false default: "" + summary: + description: "Whether to add the output to the workflow summary" + required: false + default: true branding: color: "black" icon: "check-circle" @@ -47,10 +51,12 @@ runs: # Display the raw output in the step echo "${out}" - # Display the Markdown output in the job summary - echo "\`\`\`python" >> $GITHUB_STEP_SUMMARY - echo "${out}" >> $GITHUB_STEP_SUMMARY - echo "\`\`\`" >> $GITHUB_STEP_SUMMARY + if [ "${{ inputs.summary }}" == "true" ]; then + # Display the Markdown output in the job summary + echo "\`\`\`python" >> $GITHUB_STEP_SUMMARY + echo "${out}" >> $GITHUB_STEP_SUMMARY + echo "\`\`\`" >> $GITHUB_STEP_SUMMARY + fi # Exit with the exit-code returned by Black exit ${exit_code} From 824401e142262281bc2a87c24a0c25591111a503 Mon Sep 17 00:00:00 2001 From: Dario Curreri Date: Mon, 23 Oct 2023 17:56:42 +0200 Subject: [PATCH 2/3] Add `summary` parameter change --- CHANGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 2a50e456550..447420b106d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -40,7 +40,7 @@ ### Integrations - +- The summary output for GitHub workflows is now suppressible using the `summary` parameter. (#3958) ### Documentation From 38b1c52eeb1bc109ff50f4fa8cebc3f40d289d5a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Oct 2023 16:00:09 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- CHANGES.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 447420b106d..255c04fd127 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -40,7 +40,8 @@ ### Integrations -- The summary output for GitHub workflows is now suppressible using the `summary` parameter. (#3958) +- The summary output for GitHub workflows is now suppressible using the `summary` + parameter. (#3958) ### Documentation