From 50e48a20c053f8b05c48547b5f5dc1059879867c Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 5 Feb 2025 11:05:42 +0900 Subject: [PATCH] Generate the latest version number from OpenSSL LTS releases --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 377524cd211748..957dd9d9bbc7a5 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: |