Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c7aa9f4

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

File tree

1 file changed

+46
-0
lines changed
  • .github/workflows
    • check-new-windows-versions.yml

1 file changed

+46
-0
lines changed

.github/workflows/check-new-windows-versions.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Check for new CRuby releases on Windows
2+
on:
3+
schedule:
4+
- cron: '0 7,19 * * *'
5+
workflow_dispatch:
6+
7+
jobs:
8+
check_windows_versions:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
15+
- run: ruby generate-windows-versions.rb
16+
17+
- name: TODO for testing
18+
run: echo >> windows-versions.json
19+
20+
- id: diff
21+
run: git diff --exit-code
22+
continue-on-error: true
23+
24+
- if: ${{ steps.diff.outcome == 'failure' }} # changed
25+
run: ./pre-commit
26+
shell: bash
27+
28+
# See https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#push-pull-request-branches-to-a-fork
29+
- if: ${{ steps.diff.outcome == 'failure' }} # changed
30+
uses: peter-evans/create-pull-request@v8
31+
id: pr
32+
with:
33+
push-to-fork: ruby-builder-bot/setup-ruby
34+
author: ruby-builder-bot <98265520+ruby-builder-bot@users.noreply.github.com>
35+
committer: ruby-builder-bot <98265520+ruby-builder-bot@users.noreply.github.com>
36+
title: Update CRuby releases on Windows
37+
commit-message: Update CRuby releases on Windows
38+
body: Automated PR (testing)
39+
branch: windows
40+
delete-branch: true
41+
token: ${{ secrets.PR_FROM_RUBY_BUILDER_TOKEN }}
42+
43+
- if: ${{ steps.diff.outcome == 'failure' }} # changed
44+
name: PR URL
45+
run: echo "${{ steps.pr.outputs.pull-request-url }}"
46+
shell: bash

0 commit comments

Comments
(0)