Skip to content

Commit 15ccf9b

Browse files
committed
Move check-new-windows-versions.yml workflow from ruby/ruby-builder to ruby/setup-ruby
1 parent 8d27f39 commit 15ccf9b

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Check for new CRuby releases on Windows
2+
on:
3+
schedule:
4+
- cron: '0 7,19 * * *'
5+
workflow_dispatch:
6+
jobs:
7+
check_windows_versions:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
14+
- run: ruby generate-windows-versions.rb
15+
16+
- name: TODO for testing
17+
run: echo >> windows-versions.json
18+
19+
- id: diff
20+
run: git diff --exit-code
21+
continue-on-error: true
22+
23+
- if: ${{ steps.diff.outcome == 'failure' }} # changed
24+
run: ./pre-commit
25+
shell: bash
26+
27+
- if: ${{ steps.diff.outcome == 'failure' }} # changed
28+
uses: peter-evans/create-pull-request@v8
29+
id: pr
30+
with:
31+
base: master
32+
branch: windows
33+
title: Update CRuby releases on Windows
34+
commit-message: Update CRuby releases on Windows
35+
body: Automated PR
36+
37+
- if: ${{ steps.diff.outcome == 'failure' }} # changed
38+
name: PR URL
39+
run: echo "${{ steps.pr.outputs.pull-request-url }}"
40+
shell: bash

0 commit comments

Comments
 (0)