Skip to content

Commit

Permalink
Add version attribute as action output (#16)
Browse files Browse the repository at this point in the history
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
  • Loading branch information
Poeschl and frenck authored May 30, 2021
1 parent 54f3736 commit 9c37dc6
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 @@ -76,6 +76,7 @@ The Action provides the following information as output:
| `slug` | The configured add-on slug. |
| `target` | The add-on target folder. |
| `image` | The Image-template of the add-on. |
| `version` | The version 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 @@ -49,6 +49,9 @@ outputs:
image:
description: Image-template of the add-on
value: ${{ steps.find.outputs.basic.image }}
version:
description: Returns the version of the add-on
value: ${{ steps.find.outputs.basic.version }}

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

0 comments on commit 9c37dc6

Please sign in to comment.