Skip to content

try

try #1

name: Check for new CRuby releases on Windows
on:
schedule:
- cron: '0 7,19 * * *'
workflow_dispatch:
push: # TODO
jobs:
check_windows_versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: ruby generate-windows-versions.rb
- name: TODO for testing
run: echo >> windows-versions.json
- id: diff
run: git diff --exit-code
continue-on-error: true
- if: ${{ steps.diff.outcome == 'failure' }} # changed
run: ./pre-commit
shell: bash
- if: ${{ steps.diff.outcome == 'failure' }} # changed
uses: peter-evans/create-pull-request@v8
id: pr
with:
base: master
branch: windows
title: Update CRuby releases on Windows
commit-message: Update CRuby releases on Windows
body: Automated PR
- if: ${{ steps.diff.outcome == 'failure' }} # changed
name: PR URL
run: echo "${{ steps.pr.outputs.pull-request-url }}"
shell: bash