Skip to content

Commit 1228120

Browse files
committed
Add initial Composite GitHub Action
1 parent 21e76c9 commit 1228120

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

action.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
3+
name: checkout-python-sdist
4+
description: >-
5+
GitHub Action for unpacking the source out of
6+
a source Python package distribution tarball
7+
author: >-
8+
Sviatoslav Sydorenko
9+
<wk+~github.com/re-actors/[email protected]>
10+
11+
branding:
12+
icon: git-pull-request
13+
color: blue
14+
15+
inputs:
16+
source-tarball-name:
17+
default: >-
18+
*.tar.gz
19+
description: >-
20+
A glob for the source distribution tarball filename
21+
in the artifact (defaults to `*.tar.gz`)
22+
required: false
23+
workflow-artifact-name:
24+
default: python-package-distributions
25+
description: >-
26+
Used to extract the source distribution tarball from
27+
(defaults to `python-package-distributions`)
28+
required: false
29+
30+
runs:
31+
using: composite
32+
steps:
33+
- name: Retrieve the dists from a GHA artifact
34+
uses: actions/download-artifact@v2
35+
with:
36+
name: ${{ inputs.workflow-artifact-name }}
37+
path: ${{ github.action_path }}/.tmp
38+
- name: Get the source out of the tarball
39+
run: >-
40+
tar xzvf ${{ inputs.source-tarball-name }}
41+
--directory='${{ github.workspace }}' --strip-components=1
42+
working-directory: ${{ github.action_path }}/.tmp
43+
shell: bash
44+
45+
...

0 commit comments

Comments
 (0)