From 794e304fb3768a063f373a13c21816485c0dbbdf Mon Sep 17 00:00:00 2001 From: Shengyu Zhang Date: Fri, 2 Feb 2024 20:50:16 +0800 Subject: [PATCH] Group tar's output to prevent it from messing up logs When it is used as a component of a composite action. --- action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/action.yml b/action.yml index 20d3f3e..a19976e 100644 --- a/action.yml +++ b/action.yml @@ -25,6 +25,7 @@ runs: shell: sh if: runner.os == 'Linux' run: | + echo ::group::Archive artifact tar \ --dereference --hard-dereference \ --directory "$INPUT_PATH" \ @@ -32,6 +33,7 @@ runs: --exclude=.git \ --exclude=.github \ . + echo ::endgroup:: env: INPUT_PATH: ${{ inputs.path }} @@ -40,6 +42,7 @@ runs: shell: sh if: runner.os == 'macOS' run: | + echo ::group::Archive artifact gtar \ --dereference --hard-dereference \ --directory "$INPUT_PATH" \ @@ -47,6 +50,7 @@ runs: --exclude=.git \ --exclude=.github \ . + echo ::endgroup:: env: INPUT_PATH: ${{ inputs.path }} @@ -55,6 +59,7 @@ runs: shell: bash if: runner.os == 'Windows' run: | + echo ::group::Archive artifact tar \ --dereference --hard-dereference \ --directory "$INPUT_PATH" \ @@ -63,6 +68,7 @@ runs: --exclude=.github \ --force-local \ "." + echo ::endgroup:: env: INPUT_PATH: ${{ inputs.path }}