Skip to content

Commit 56afc60

Browse files
authored
Merge pull request #94 from SilverRainZ/main
Group tar's output to prevent it from messing up action logs
2 parents aef5542 + d12fdfb commit 56afc60

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

action.yml

+6
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ runs:
2525
shell: sh
2626
if: runner.os == 'Linux'
2727
run: |
28+
echo ::group::Archive artifact
2829
tar \
2930
--dereference --hard-dereference \
3031
--directory "$INPUT_PATH" \
3132
-cvf "$RUNNER_TEMP/artifact.tar" \
3233
--exclude=.git \
3334
--exclude=.github \
3435
.
36+
echo ::endgroup::
3537
env:
3638
INPUT_PATH: ${{ inputs.path }}
3739

@@ -40,13 +42,15 @@ runs:
4042
shell: sh
4143
if: runner.os == 'macOS'
4244
run: |
45+
echo ::group::Archive artifact
4346
gtar \
4447
--dereference --hard-dereference \
4548
--directory "$INPUT_PATH" \
4649
-cvf "$RUNNER_TEMP/artifact.tar" \
4750
--exclude=.git \
4851
--exclude=.github \
4952
.
53+
echo ::endgroup::
5054
env:
5155
INPUT_PATH: ${{ inputs.path }}
5256

@@ -55,6 +59,7 @@ runs:
5559
shell: bash
5660
if: runner.os == 'Windows'
5761
run: |
62+
echo ::group::Archive artifact
5863
tar \
5964
--dereference --hard-dereference \
6065
--directory "$INPUT_PATH" \
@@ -63,6 +68,7 @@ runs:
6368
--exclude=.github \
6469
--force-local \
6570
"."
71+
echo ::endgroup::
6672
env:
6773
INPUT_PATH: ${{ inputs.path }}
6874

0 commit comments

Comments
 (0)