1 parent 8e178c9 commit 45ae360Copy full SHA for 45ae360
1 file changed
.github/actions/checkout/action.yml
@@ -18,10 +18,8 @@ runs:
18
- name: Checkout code
19
if: inputs.artifact-id == ''
20
uses: actions/checkout@v5
21
- - name: Setup
22
- if: inputs.artifact-id
23
- shell: bash
24
- run: set -e; mkdir __tmp-download-dir
+ with:
+ path: ${{ inputs.path }}
25
- name: Download artifact
26
id: download
27
if: inputs.artifact-id
@@ -34,7 +32,9 @@ runs:
34
32
35
33
shell: bash
36
run: |
37
- set -e
38
- tar -vxf __tmp-download-dir/*.tar.* --strip-components=1 -C ${{ inputs.path || '.' }}
+ set -ex
+ p=${{ inputs.path || '.' }}
+ mkdir -p "$p"
+ tar -vxf __tmp-download-dir/*.tar.* --strip-components=1 -C "$p"
39
# cleanup while we're at it.
40
rm -r __tmp-download-dir
0 commit comments