mirror of
https://github.com/actions/upload-pages-artifact.git
synced 2025-12-08 08:06:18 +00:00
Merge pull request #94 from SilverRainZ/main
Group tar's output to prevent it from messing up action logs
This commit is contained in:
@@ -25,6 +25,7 @@ runs:
|
|||||||
shell: sh
|
shell: sh
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
|
echo ::group::Archive artifact
|
||||||
tar \
|
tar \
|
||||||
--dereference --hard-dereference \
|
--dereference --hard-dereference \
|
||||||
--directory "$INPUT_PATH" \
|
--directory "$INPUT_PATH" \
|
||||||
@@ -32,6 +33,7 @@ runs:
|
|||||||
--exclude=.git \
|
--exclude=.git \
|
||||||
--exclude=.github \
|
--exclude=.github \
|
||||||
.
|
.
|
||||||
|
echo ::endgroup::
|
||||||
env:
|
env:
|
||||||
INPUT_PATH: ${{ inputs.path }}
|
INPUT_PATH: ${{ inputs.path }}
|
||||||
|
|
||||||
@@ -40,6 +42,7 @@ runs:
|
|||||||
shell: sh
|
shell: sh
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
run: |
|
run: |
|
||||||
|
echo ::group::Archive artifact
|
||||||
gtar \
|
gtar \
|
||||||
--dereference --hard-dereference \
|
--dereference --hard-dereference \
|
||||||
--directory "$INPUT_PATH" \
|
--directory "$INPUT_PATH" \
|
||||||
@@ -47,6 +50,7 @@ runs:
|
|||||||
--exclude=.git \
|
--exclude=.git \
|
||||||
--exclude=.github \
|
--exclude=.github \
|
||||||
.
|
.
|
||||||
|
echo ::endgroup::
|
||||||
env:
|
env:
|
||||||
INPUT_PATH: ${{ inputs.path }}
|
INPUT_PATH: ${{ inputs.path }}
|
||||||
|
|
||||||
@@ -55,6 +59,7 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
run: |
|
run: |
|
||||||
|
echo ::group::Archive artifact
|
||||||
tar \
|
tar \
|
||||||
--dereference --hard-dereference \
|
--dereference --hard-dereference \
|
||||||
--directory "$INPUT_PATH" \
|
--directory "$INPUT_PATH" \
|
||||||
@@ -63,6 +68,7 @@ runs:
|
|||||||
--exclude=.github \
|
--exclude=.github \
|
||||||
--force-local \
|
--force-local \
|
||||||
"."
|
"."
|
||||||
|
echo ::endgroup::
|
||||||
env:
|
env:
|
||||||
INPUT_PATH: ${{ inputs.path }}
|
INPUT_PATH: ${{ inputs.path }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user