Skip to content

Commit ca588d3

Browse files
committed
Add guards for missing args
1 parent f9b57e9 commit ca588d3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ inputs:
3030
runs:
3131
using: composite
3232
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
3343
- name: Retrieve the dists from a GHA artifact
3444
uses: actions/download-artifact@v2
3545
with:

0 commit comments

Comments
 (0)