File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 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+ base : master
40+ branch : windows
41+ delete-branch : true
42+ token : ${{ secrets.PR_FROM_RUBY_BUILDER_TOKEN }}
43+
44+ - if : ${{ steps.diff.outcome == 'failure' }} # changed
45+ name : PR URL
46+ run : echo "${{ steps.pr.outputs.pull-request-url }}"
47+ shell : bash
You can’t perform that action at this time.
0 commit comments