Skip to content

Commit 50e48a2

Browse files
committed
Generate the latest version number from OpenSSL LTS releases
1 parent 920d155 commit 50e48a2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,18 @@ jobs:
8484
https://api.github.com/repos/ruby/snap.ruby/dispatches \
8585
-d '{"event_type": "build", "client_payload": {"ruby_version": "${{ env.RUBY_VERSION }}"}}'
8686
87+
- name: Store the latest LTS version of OpenSSL
88+
run: |
89+
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
90+
8791
- name: Update ruby-build definition
8892
run: |
8993
curl -L -X POST \
9094
-H "Authorization: Bearer ${{ secrets.RUBY_BUILD_WORKFLOW_TOKEN }}" \
9195
-H "Accept: application/vnd.github+json" \
9296
-H "X-GitHub-Api-Version: 2022-11-28" \
9397
https://api.github.com/repos/rbenv/ruby-build/dispatches \
94-
-d '{"event_type": "update-ruby", "client_payload": {"ruby_version": "${{ env.RUBY_VERSION }}", "openssl_version": "3.0.15"}}'
98+
-d '{"event_type": "update-ruby", "client_payload": {"ruby_version": "${{ env.RUBY_VERSION }}", "openssl_version": "${{ env.OPENSSL_VERSION }}"}}'
9599
96100
- name: Update all-ruby definition
97101
run: |

0 commit comments

Comments
 (0)