Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ runs:
-cvf "$RUNNER_TEMP/artifact.tar" \
--exclude=.git \
--exclude=.github \
${{ inputs.include-hidden-files != 'true' && '--exclude=.[^/]*' || '' }} \
$( [ "$INCLUDE_HIDDEN_FILES" != 'true' ] && echo '--exclude=.[^/]*' || echo '' ) \
.
echo ::endgroup::
env:
INPUT_PATH: ${{ inputs.path }}
INCLUDE_HIDDEN_FILES: ${{ inputs.include-hidden-files }}

# Switch to gtar (GNU tar instead of bsdtar which is the default in the MacOS runners so we can use --hard-dereference)
- name: Archive artifact
Expand All @@ -54,11 +55,12 @@ runs:
-cvf "$RUNNER_TEMP/artifact.tar" \
--exclude=.git \
--exclude=.github \
${{ inputs.include-hidden-files != 'true' && '--exclude=.[^/]*' || '' }} \
$( [ "$INCLUDE_HIDDEN_FILES" != 'true' ] && echo '--exclude=.[^/]*' || echo '' ) \
.
echo ::endgroup::
env:
INPUT_PATH: ${{ inputs.path }}
INCLUDE_HIDDEN_FILES: ${{ inputs.include-hidden-files }}

# Massage the paths for Windows only
- name: Archive artifact
Expand All @@ -72,12 +74,13 @@ runs:
-cvf "$RUNNER_TEMP\artifact.tar" \
--exclude=.git \
--exclude=.github \
${{ inputs.include-hidden-files != 'true' && '--exclude=.[^/]*' || '' }} \
$( [ "$INCLUDE_HIDDEN_FILES" != 'true' ] && echo '--exclude=.[^/]*' || echo '' ) \
--force-local \
"."
echo ::endgroup::
env:
INPUT_PATH: ${{ inputs.path }}
INCLUDE_HIDDEN_FILES: ${{ inputs.include-hidden-files }}

- name: Upload artifact
id: upload-artifact
Expand Down
Loading