-
Notifications
You must be signed in to change notification settings - Fork 108
49 lines (41 loc) · 1.13 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Lint Random File
on:
workflow_dispatch:
schedule:
# every 3 days
- cron: '0 2 */3 * *'
defaults:
run:
shell: bash
jobs:
update-dependencies:
strategy:
fail-fast: false
runs-on: 'ubuntu-latest'
name: Lint Random File
steps:
- name: Checkout ${{ github.sha }}
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Ruby using Bundler
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7.1"
bundler: "2.1.4"
bundler-cache: true
- name: Lint a file
run: bundle exec rake lint:random
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.OSC_ROBOT_GH_PUB_REPO_TOKEN }}
commit-message: lint a random file
committer: OSC ROBOT <[email protected]>
author: osc-bot <[email protected]>
delete-branch: true
title: 'Lint a random file'
push-to-fork: osc-bot/ondemand
branch: osc-bot/random-linted-file
body: |
The result of linting a random file.