Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
searls committed Jun 17, 2024
1 parent 76587ab commit 80e303c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: 'Standard Ruby'
description: 'A GitHub Action that lints and auto-fixes your Ruby code with Standard Ruby'
author: 'Justin Searls <[email protected]>'

defaults:
run:
shell: bash

runs:
using: composite

Expand All @@ -21,13 +17,16 @@ runs:
bundler-cache: true

- name: Install dependencies
shell: bash
run: bundle install

- name: Run Standard Ruby with autofix
shell: bash
run: bundle exec standardrb --fix
id: standardrb

- name: Commit changes
shell: bash
run: |
git config --global user.name 'standard-ruby-action[bot]'
git config --global user.email 'standard-ruby-action[bot]@users.noreply.github.com'
Expand All @@ -37,11 +36,10 @@ runs:
git push
- name: Fail if Standard Ruby failed
shell: bash
if: ${{ steps.standardrb.outcome == 'failure' }}
run: exit 1

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
branding:
icon: 'code'
color: 'gray-dark'

0 comments on commit 80e303c

Please sign in to comment.