Check for new CRuby releases on Windows #886
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check for new CRuby releases on Windows | |
on: | |
schedule: | |
- cron: '0 7,19 * * *' | |
workflow_dispatch: | |
jobs: | |
check_windows_versions: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.CHECK_NEW_RELEASES_TOKEN }} | |
- name: Clone setup-ruby | |
uses: actions/checkout@v2 | |
with: | |
repository: ruby/setup-ruby | |
path: setup-ruby | |
- run: ruby generate-windows-versions.rb | |
working-directory: setup-ruby | |
- id: diff | |
run: git diff --exit-code | |
working-directory: setup-ruby | |
continue-on-error: true | |
- if: ${{ steps.diff.outcome == 'failure' }} # changed | |
uses: ruby/ruby-builder/.github/actions/create-pr-to-setup-ruby@master | |
with: | |
versions: windows | |
title: Update CRuby releases on Windows | |
token: ${{ secrets.CHECK_NEW_RELEASES_TOKEN }} |