Generate the latest version number from OpenSSL LTS releases

This commit is contained in:
Hiroshi SHIBATA 2025-02-05 11:05:42 +09:00
parent 920d155560
commit 50e48a20c0
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -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: |