Skip to content

Commit 094ff12

Browse files
authored
Merge branch 'main' into main
2 parents 8589d50 + 08b441b commit 094ff12

File tree

3 files changed

+38
-24
lines changed

3 files changed

+38
-24
lines changed

.github/workflows/lint.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,28 @@ jobs:
1616
- uses: actions/[email protected]
1717

1818
- name: Setup Ruby
19-
uses: ruby/setup-ruby@2a7b30092b0caf9c046252510f9273b4875f3db9 # v1.254.0
19+
uses: ruby/setup-ruby@v1.255.0
2020
with:
2121
bundler-cache: true
2222

23-
- name: Run linters
24-
uses: wearerequired/lint-action@548d8a7c4b04d3553d32ed5b6e91eb171e10e7bb # v2
25-
if: ${{ github.event_name == 'pull_request_target' }}
26-
with:
27-
auto_fix: true
28-
rubocop: true
29-
rubocop_command_prefix: bundle exec
23+
- name: Run RuboCop with auto-correct
24+
run: |
25+
bundle exec rubocop -A
26+
27+
- name: Check for changes
28+
id: changes
29+
run: |
30+
git config --global user.name "github-actions[bot]"
31+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
32+
if git status --porcelain | grep .; then
33+
echo "changes=true" >> $GITHUB_ENV
34+
else
35+
echo "changes=false" >> $GITHUB_ENV
36+
fi
37+
38+
- name: Commit and push changes
39+
if: env.changes == 'true'
40+
run: |
41+
git add .
42+
git commit -m "chore: auto-corrected with RuboCop"
43+
git push

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ gem "faraday", "2.12.2"
44
gem "faraday-retry", "2.3.1"
55
gem "github-pages", "~> 232", group: :jekyll_plugins
66
gem "json", "2.11.3"
7-
gem "language_server-protocol", "3.17.0.4"
7+
gem "language_server-protocol", "3.17.0.5"
88
gem "nokogiri", "~> 1.18.8"
99
gem "rake", "13.2.1"
1010
gem "rubocop", "1.75.5"

Gemfile.lock

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ GEM
240240
rexml
241241
kramdown-parser-gfm (1.1.0)
242242
kramdown (~> 2.0)
243-
language_server-protocol (3.17.0.4)
243+
language_server-protocol (3.17.0.5)
244244
lint_roller (1.1.0)
245245
liquid (4.0.4)
246246
listen (3.9.0)
@@ -260,30 +260,30 @@ GEM
260260
bigdecimal (~> 3.1)
261261
net-http (0.6.0)
262262
uri
263-
nokogiri (1.18.8)
263+
nokogiri (1.18.9)
264264
mini_portile2 (~> 2.8.2)
265265
racc (~> 1.4)
266-
nokogiri (1.18.8-aarch64-linux-gnu)
266+
nokogiri (1.18.9-aarch64-linux-gnu)
267267
racc (~> 1.4)
268-
nokogiri (1.18.8-aarch64-linux-musl)
268+
nokogiri (1.18.9-aarch64-linux-musl)
269269
racc (~> 1.4)
270-
nokogiri (1.18.8-arm-linux-gnu)
270+
nokogiri (1.18.9-arm-linux-gnu)
271271
racc (~> 1.4)
272-
nokogiri (1.18.8-arm-linux-musl)
272+
nokogiri (1.18.9-arm-linux-musl)
273273
racc (~> 1.4)
274-
nokogiri (1.18.8-arm64-darwin)
274+
nokogiri (1.18.9-arm64-darwin)
275275
racc (~> 1.4)
276-
nokogiri (1.18.8-x86_64-darwin)
276+
nokogiri (1.18.9-x86_64-darwin)
277277
racc (~> 1.4)
278-
nokogiri (1.18.8-x86_64-linux-gnu)
278+
nokogiri (1.18.9-x86_64-linux-gnu)
279279
racc (~> 1.4)
280-
nokogiri (1.18.8-x86_64-linux-musl)
280+
nokogiri (1.18.9-x86_64-linux-musl)
281281
racc (~> 1.4)
282282
octokit (4.25.1)
283283
faraday (>= 1, < 3)
284284
sawyer (~> 0.9)
285285
parallel (1.27.0)
286-
parser (3.3.8.0)
286+
parser (3.3.9.0)
287287
ast (~> 2.4.1)
288288
racc
289289
pathutil (0.16.2)
@@ -299,7 +299,7 @@ GEM
299299
rb-fsevent (0.11.2)
300300
rb-inotify (0.11.1)
301301
ffi (~> 1.0)
302-
regexp_parser (2.10.0)
302+
regexp_parser (2.11.1)
303303
rexml (3.4.1)
304304
rouge (3.30.0)
305305
rubocop (1.75.5)
@@ -313,7 +313,7 @@ GEM
313313
rubocop-ast (>= 1.44.0, < 2.0)
314314
ruby-progressbar (~> 1.7)
315315
unicode-display_width (>= 2.4.0, < 4.0)
316-
rubocop-ast (1.45.1)
316+
rubocop-ast (1.46.0)
317317
parser (>= 3.3.7.2)
318318
prism (~> 1.4)
319319
rubocop-performance (1.25.0)
@@ -367,7 +367,7 @@ DEPENDENCIES
367367
github-pages (~> 232)
368368
httparty
369369
json (= 2.11.3)
370-
language_server-protocol (= 3.17.0.4)
370+
language_server-protocol (= 3.17.0.5)
371371
minitest
372372
nokogiri (~> 1.18.8)
373373
octokit
@@ -379,4 +379,4 @@ DEPENDENCIES
379379
webrick
380380

381381
BUNDLED WITH
382-
2.5.19
382+
2.7.1

0 commit comments

Comments
 (0)