Skip to content

Commit

Permalink
Merge pull request #94 from SilverRainZ/main
Browse files Browse the repository at this point in the history
Group tar's output to prevent it from messing up action logs
  • Loading branch information
JamesMGreene committed Feb 7, 2024
2 parents aef5542 + d12fdfb commit 56afc60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions action.yml
Expand Up @@ -25,13 +25,15 @@ runs:
shell: sh
if: runner.os == 'Linux'
run: |
echo ::group::Archive artifact
tar \
--dereference --hard-dereference \
--directory "$INPUT_PATH" \
-cvf "$RUNNER_TEMP/artifact.tar" \
--exclude=.git \
--exclude=.github \
.
echo ::endgroup::
env:
INPUT_PATH: ${{ inputs.path }}

Expand All @@ -40,13 +42,15 @@ runs:
shell: sh
if: runner.os == 'macOS'
run: |
echo ::group::Archive artifact
gtar \
--dereference --hard-dereference \
--directory "$INPUT_PATH" \
-cvf "$RUNNER_TEMP/artifact.tar" \
--exclude=.git \
--exclude=.github \
.
echo ::endgroup::
env:
INPUT_PATH: ${{ inputs.path }}

Expand All @@ -55,6 +59,7 @@ runs:
shell: bash
if: runner.os == 'Windows'
run: |
echo ::group::Archive artifact
tar \
--dereference --hard-dereference \
--directory "$INPUT_PATH" \
Expand All @@ -63,6 +68,7 @@ runs:
--exclude=.github \
--force-local \
"."
echo ::endgroup::
env:
INPUT_PATH: ${{ inputs.path }}

Expand Down

0 comments on commit 56afc60

Please sign in to comment.