Skip to content

Commit 0f52db0

Browse files
committed
Revert "action: reflow, switch to download-artifact@v4"
This reverts commit f305688.
1 parent f305688 commit 0f52db0

File tree

1 file changed

+36
-33
lines changed

1 file changed

+36
-33
lines changed

action.yml

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
23
name: checkout-python-sdist
34
description: >-
45
GitHub Action for unpacking the source out of
@@ -29,36 +30,38 @@ inputs:
2930
runs:
3031
using: composite
3132
steps:
32-
- name: Error out on empty workflow artifact input
33-
if: >-
34-
!inputs.workflow-artifact-name
35-
run: exit 1
36-
shell: bash
37-
- name: Error out on empty tarball input
38-
if: >-
39-
!inputs.source-tarball-name
40-
run: exit 1
41-
shell: bash
42-
- name: Retrieve the dists from a GHA artifact
43-
uses: actions/download-artifact@v4
44-
with:
45-
name: ${{ inputs.workflow-artifact-name }}
46-
path: ${{ github.action_path }}/.tmp
47-
- name: >-
48-
Get a *NIX-style workspace directory absolute path
49-
# NOTE: This is necessary because attempting to use ${{ github.workspace }}
50-
# NOTE: in the `tar` command makes it error out under Windows workers. This
51-
# NOTE: is supposedly happening because `shell: bash` uses Git Bash (v4)
52-
# NOTE: and not MINGW Bash (v5) which does not have this problem.
53-
id: workdir
54-
run: >-
55-
echo path="$(pwd)" >> "${GITHUB_OUTPUT}"
56-
working-directory: ${{ github.workspace }}
57-
shell: bash
58-
- name: Get the source out of the tarball
59-
run: >-
60-
tar xzvf ${{ inputs.source-tarball-name }}
61-
--directory='${{ steps.workdir.outputs.path }}'
62-
--strip-components=1
63-
working-directory: ${{ github.action_path }}/.tmp
64-
shell: bash
33+
- name: Error out on empty workflow artifact input
34+
if: >-
35+
!inputs.workflow-artifact-name
36+
run: exit 1
37+
shell: bash
38+
- name: Error out on empty tarball input
39+
if: >-
40+
!inputs.source-tarball-name
41+
run: exit 1
42+
shell: bash
43+
- name: Retrieve the dists from a GHA artifact
44+
uses: actions/download-artifact@v3
45+
with:
46+
name: ${{ inputs.workflow-artifact-name }}
47+
path: ${{ github.action_path }}/.tmp
48+
- name: >-
49+
Get a *NIX-style workspace directory absolute path
50+
# NOTE: This is necessary because attempting to use ${{ github.workspace }}
51+
# NOTE: in the `tar` command makes it error out under Windows workers. This
52+
# NOTE: is supposedly happening because `shell: bash` uses Git Bash (v4)
53+
# NOTE: and not MINGW Bash (v5) which does not have this problem.
54+
id: workdir
55+
run: >-
56+
echo path="$(pwd)" >> "${GITHUB_OUTPUT}"
57+
working-directory: ${{ github.workspace }}
58+
shell: bash
59+
- name: Get the source out of the tarball
60+
run: >-
61+
tar xzvf ${{ inputs.source-tarball-name }}
62+
--directory='${{ steps.workdir.outputs.path }}'
63+
--strip-components=1
64+
working-directory: ${{ github.action_path }}/.tmp
65+
shell: bash
66+
67+
...

0 commit comments

Comments
 (0)