Skip to content

Commit

Permalink
fix: Tweak to use /latest endpoint (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescooke authored Feb 11, 2022
1 parent 60141cf commit 79ceba6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ runs:
owner="${{ inputs.owner }}"
repo="${{ inputs.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')
target_commitish=$(echo "$release_json" | jq -r '.[0].target_commitish')
release_json=$(curl https://api.github.com/repos/$owner/$repo/releases/latest)
latest_tag=$(echo "$release_json" | jq -r '.tag_name')
latest_tag_published_at=$(echo "$release_json" | jq -r '.published_at')
target_commitish=$(echo "$release_json" | jq -r '.target_commitish')
echo "latest_tag: $latest_tag"
echo "latest_tag_published_at: $latest_tag_published_at"
Expand Down

0 comments on commit 79ceba6

Please sign in to comment.