Skip to content

Merge pull request #4450 from TheGiraffe3/endless-sky #4092

Merge pull request #4450 from TheGiraffe3/endless-sky

Merge pull request #4450 from TheGiraffe3/endless-sky #4092

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
merge_group:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run linters
if: ${{ github.event_name != 'merge_group' }}
uses: wearerequired/lint-action@v2
with:
auto_fix: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner }}
rubocop: true
rubocop_command_prefix: bundle exec
- name: Skip with successful status
if: ${{ github.event_name == 'merge_group' }}
run: exit 0