Skip to content

Commit

Permalink
feat: return latest_tag_published_at
Browse files Browse the repository at this point in the history
  • Loading branch information
abatilo committed Oct 18, 2019
1 parent 975cc8c commit cbceb53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ inputs:
outputs:
latest_tag:
description: 'The latest release version tag'
latest_tag_published_at:
description: 'The ISO8601 timestamp of when this version was released'
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ repo="$INPUT_REPO"

release_json=$(curl https://api.github.com/repos/$owner/$repo/releases)
latest_tag=$(echo "$release_json" | jq -r '.[0].tag_name')
latest_tag_published_at=$(echo "$release_json" | jq -r '.[0].published_at')

echo ::set-output name=latest_tag::"$latest_tag"
echo ::set-output name=latest_tag_published_at::"$latest_tag_published_at"

0 comments on commit cbceb53

Please sign in to comment.