Skip to content

Commit

Permalink
Added output
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Sep 18, 2024
1 parent 099faa3 commit c01c890
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/openjdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ jobs:
--url "https://api.adoptium.net/v3/info/available_releases" \
| jq --raw-output '.available_releases | max'
)"
echo "### Found major version ${MAJOR_VERSION}"
VERSION="$(
curl --silent --show-error --location --fail \
--url "https://api.github.com/repos/adoptium/temurin${MAJOR_VERSION}-binaries/releases/latest" \
| jq --raw-output '.tag_name'
)"
echo "### Found version ${VERSION}"
echo "version=${VERSION}" >>${GITHUB_OUTPUT}
Expand All @@ -58,4 +60,4 @@ jobs:
name: "openjdk v${{ steps.fetch.outputs.version }}"
tag: openjdk/${{ steps.fetch.outputs.version }}
draft: false
prerelease: false
prerelease: false

0 comments on commit c01c890

Please sign in to comment.