Skip to content

Commit f305688

Browse files
committed
action: reflow, switch to download-artifact@v4
Signed-off-by: William Woodruff <[email protected]>
1 parent 1f86110 commit f305688

File tree

1 file changed

+33
-36
lines changed

1 file changed

+33
-36
lines changed

action.yml

Lines changed: 33 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
name: checkout-python-sdist
43
description: >-
54
GitHub Action for unpacking the source out of
@@ -30,38 +29,36 @@ inputs:
3029
runs:
3130
using: composite
3231
steps:
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-
...
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

0 commit comments

Comments
 (0)