Skip to content

Commit 407bf54

Browse files
committed
Add an error message to the UI if missing required push inputs
1 parent cf7e239 commit 407bf54

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ runs:
8686
&& ( ! inputs.registry_url
8787
|| ! inputs.registry_user
8888
|| ! inputs.registry_pass)
89-
shell: bash
90-
run: |
91-
echo "::error ::'push_image' specified but missing 'registry_url', 'registry_user', or 'registry_pass'"
92-
exit 1
89+
uses: actions/github-script@v3
90+
with:
91+
script: |
92+
core.setFailed("'push_image' specified but missing 'registry_url', 'registry_user', or 'registry_pass'")
9393
9494
- id: generate-tags
9595
name: Generate tag list

0 commit comments

Comments
 (0)