We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 780ca3f + e361946 commit f4e6901Copy full SHA for f4e6901
1 file changed
action.yml
@@ -14,7 +14,7 @@ runs:
14
steps:
15
- name: Archive artifact
16
shell: bash
17
- if: runner.os != 'Windows'
+ if: runner.os == 'Linux'
18
run: |
19
tar \
20
--dereference --hard-dereference \
@@ -24,6 +24,19 @@ runs:
24
--exclude=.github \
25
.
26
27
+ # Switch to gtar (GNU tar instead of bsdtar which is the default in the MacOS runners so we can use --hard-dereference)
28
+ - name: Archive artifact
29
+ shell: bash
30
+ if: runner.os == 'macOS'
31
+ run: |
32
+ gtar \
33
+ --dereference --hard-dereference \
34
+ --directory ${{ inputs.path }} \
35
+ -cvf ${{ runner.temp }}/artifact.tar \
36
+ --exclude=.git \
37
+ --exclude=.github \
38
+ .
39
+
40
# Massage the paths for Windows only
41
42
0 commit comments