File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 83
83
DEBUG : " ${{ inputs.debug }}"
84
84
PACKAGES : " ${{ inputs.packages }}"
85
85
86
+ - id : upload-logs
87
+ if : ${{ inputs.debug == 'true' }}
88
+ uses : actions/upload-artifact@v3
89
+ with :
90
+ name : cache-apt-pkgs-logs_${{ env.CACHE_KEY }}
91
+ path : ~/cache-apt-pkgs/*.log
92
+
86
93
- id : save-cache
87
94
if : ${{ ! steps.load-cache.outputs.cache-hit }}
88
95
uses : actions/cache/save@v3
@@ -94,10 +101,3 @@ runs:
94
101
run : |
95
102
rm -rf ~/cache-apt-pkgs
96
103
shell : bash
97
-
98
- - id : upload-logs
99
- if : ${{ inputs.debug == 'true' }}
100
- uses : actions/upload-artifact@v3
101
- with :
102
- name : cache-apt-pkgs-logs_${{ env.CACHE_KEY }}
103
- path : ~/cache-apt-pkgs/*.log
Original file line number Diff line number Diff line change @@ -92,7 +92,8 @@ for installed_package in ${installed_packages}; do
92
92
& get_install_script_filepath " " " ${package_name} " " preinst" \
93
93
& get_install_script_filepath " " " ${package_name} " " postinst" ; } |
94
94
while IFS= read -r f; do test -f " ${f} " -o -L " ${f} " && get_tar_relpath " ${f} " ; done |
95
- xargs -I {} echo \' {}\' | # Single quotes ensure literals like backslash get captured.
95
+ # Single quotes ensure literals like backslash get captured. Use \0 to avoid field separation.
96
+ awk -F" \0" ' {print "\x27"$1"\x27"}' |
96
97
sudo xargs tar -cf " ${cache_filepath} " -C /
97
98
98
99
log " done (compressed size $( du -h " ${cache_filepath} " | cut -f1) )."
You can’t perform that action at this time.
0 commit comments