Skip to content

Commit 45ae360

Browse files
committed
whack-a-mole goes the github
Signed-off-by: Brian Harring <ferringb@gmail.com>
1 parent 8e178c9 commit 45ae360

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/actions/checkout/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ runs:
1818
- name: Checkout code
1919
if: inputs.artifact-id == ''
2020
uses: actions/checkout@v5
21-
- name: Setup
22-
if: inputs.artifact-id
23-
shell: bash
24-
run: set -e; mkdir __tmp-download-dir
21+
with:
22+
path: ${{ inputs.path }}
2523
- name: Download artifact
2624
id: download
2725
if: inputs.artifact-id
@@ -34,7 +32,9 @@ runs:
3432
if: inputs.artifact-id
3533
shell: bash
3634
run: |
37-
set -e
38-
tar -vxf __tmp-download-dir/*.tar.* --strip-components=1 -C ${{ inputs.path || '.' }}
35+
set -ex
36+
p=${{ inputs.path || '.' }}
37+
mkdir -p "$p"
38+
tar -vxf __tmp-download-dir/*.tar.* --strip-components=1 -C "$p"
3939
# cleanup while we're at it.
4040
rm -r __tmp-download-dir

0 commit comments

Comments
 (0)