diff options
author | Hiroshi SHIBATA <[email protected]> | 2025-02-05 11:05:42 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-02-05 11:05:42 +0900 |
commit | 50e48a20c053f8b05c48547b5f5dc1059879867c (patch) | |
tree | 4300faf4b5c6a98553917e5d55295ad8b91e2ae7 | |
parent | 920d155560b5d6037e454518c5f86dd740c42159 (diff) |
Generate the latest version number from OpenSSL LTS releases
-rw-r--r-- | .github/workflows/release.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 377524cd21..957dd9d9bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,6 +84,10 @@ jobs: https://api.github.com/repos/ruby/snap.ruby/dispatches \ -d '{"event_type": "build", "client_payload": {"ruby_version": "${{ env.RUBY_VERSION }}"}}' + - name: Store the latest LTS version of OpenSSL + run: | + echo 'OPENSSL_VERSION=`curl -s https://api.github.com/repos/openssl/openssl/releases | jq -r '.[].tag_name | select(startswith("openssl-3.0"))' | sort -Vr | head -n1 | cut -d'-' -f2`' >> $GITHUB_ENV + - name: Update ruby-build definition run: | curl -L -X POST \ @@ -91,7 +95,7 @@ jobs: -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/rbenv/ruby-build/dispatches \ - -d '{"event_type": "update-ruby", "client_payload": {"ruby_version": "${{ env.RUBY_VERSION }}", "openssl_version": "3.0.15"}}' + -d '{"event_type": "update-ruby", "client_payload": {"ruby_version": "${{ env.RUBY_VERSION }}", "openssl_version": "${{ env.OPENSSL_VERSION }}"}}' - name: Update all-ruby definition run: | |