Skip to content

Commit

Permalink
Merge pull request #1 from brandnewbox/ruby-version
Browse files Browse the repository at this point in the history
Configurable Ruby version
  • Loading branch information
willtcarey authored Mar 12, 2024
2 parents f533e61 + 99c1f4c commit 81f08a2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 63 deletions.
13 changes: 0 additions & 13 deletions Dockerfile

This file was deleted.

20 changes: 18 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,25 @@
name: 'StandardRB Action'
description: 'A GitHub Action that lints your Ruby code with StandardRB!'
author: 'Andrew Mason <[email protected]>'
inputs:
ruby-version:
description: 'Ruby version'
required: true
default: '3.2.2'

runs:
using: 'docker'
image: 'Dockerfile'
using: composite
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ inputs.ruby-version }}
bundler: none
- name: Install standard
shell: bash
run: gem install standard:$(awk '/standard \(/ {sub(/\(/, ""); sub(/\)/, ""); print $2}' Gemfile.lock)
- name: Run standard
shell: bash
run: standardrb --parallel -f github
env:
GITHUB_TOKEN: secrets.GITHUB_TOKEN
branding:
Expand Down
29 changes: 0 additions & 29 deletions bin/standardrb

This file was deleted.

19 changes: 0 additions & 19 deletions lib/entrypoint.sh

This file was deleted.

0 comments on commit 81f08a2

Please sign in to comment.