Skip to content

Check for new Rubies in ruby-build #2774

Check for new Rubies in ruby-build

Check for new Rubies in ruby-build #2774

name: Check for new Rubies in ruby-build
on:
schedule:
- cron: '42 * * * *'
workflow_dispatch:
jobs:
check_new_releases:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PUSH_TO_MASTER_TOKEN }}
- name: Clone setup-ruby
uses: actions/checkout@v4
with:
repository: ruby/setup-ruby
path: setup-ruby
- name: Clone ruby-build
uses: actions/checkout@v4
with:
repository: rbenv/ruby-build
path: ruby-build
- name: Install ruby-build
run: sudo ./ruby-build/install.sh
- name: List versions
run: ruby-build --definitions
- name: Setup git user
run: |
git config user.name 'ruby-builder-bot'
git config user.email '98265520+ruby-builder-bot@users.noreply.github.com'
- run: ruby check-new-releases.rb