Skip to content

Commit

Permalink
Add image attribute output (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
  • Loading branch information
3 people authored May 19, 2021
1 parent f871527 commit 5ba6ea4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ The Action provides the following information as output:
| `name` | The name of the add-on. |
| `slug` | The configured add-on slug. |
| `target` | The add-on target folder. |
| `image` | The Image-template of the add-on. |

## Changelog & Releases

Expand Down
6 changes: 6 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ outputs:
target:
description: Returns the add-on target folder name
value: ${{ steps.find.outputs.target }}
image:
description: Image-template of the add-on
value: ${{ steps.find.outputs.basic.image }}

runs:
using: "composite"
Expand Down Expand Up @@ -95,6 +98,9 @@ runs:
description=$(jq --raw-output '.description' "${{ steps.find.outputs.config }}")
echo "::set-output name=description::${description}"
image=$(jq --raw-output '.image // empty' "${{ steps.find.outputs.config }}")
echo "::set-output name=image::${image}"
- name: ℹ️ Extract add-on architecture information
shell: bash
id: architectures
Expand Down

0 comments on commit 5ba6ea4

Please sign in to comment.