From c4ef7bc49d6c782864fbc9ce142f6cd38c778063 Mon Sep 17 00:00:00 2001 From: "personaclick-courier[bot]" <205635110+personaclick-courier[bot]@users.noreply.github.com> Date: Wed, 11 Feb 2026 07:31:04 +0000 Subject: [PATCH] feat(release): sync --- .github/workflows/reusable-ruby-checks.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/reusable-ruby-checks.yaml b/.github/workflows/reusable-ruby-checks.yaml index d3f2444..4f25a61 100644 --- a/.github/workflows/reusable-ruby-checks.yaml +++ b/.github/workflows/reusable-ruby-checks.yaml @@ -15,10 +15,6 @@ on: description: Optional GitHub App installation ID required: false type: string - rubocopEnabled: - required: false - type: boolean - default: false workingDirectory: description: Working direction for action default: ./ @@ -171,8 +167,15 @@ jobs: bin/bundle fi + - name: Check if Rubocop is present + id: rubocop + run: | + if test -f "bin/rubocop"; then + echo "rubocop_enabled=true" >> "$GITHUB_OUTPUT" + fi + - name: Prepare RuboCop cache - if: ${{ !cancelled() && inputs.rubocopEnabled == true }} + if: ${{ !cancelled() && steps.rubocop.outputs.rubocop_enabled == 'true' }} uses: actions/cache@v4 env: DEPENDENCIES_HASH: ${{ hashFiles('.ruby-version', '**/.rubocop.yml', '**/.rubocop_todo.yml', 'Gemfile.lock') }} @@ -183,7 +186,7 @@ jobs: rubocop-${{ runner.os }}-${{ env.DEPENDENCIES_HASH }}- - name: Lint - if: ${{ !cancelled() && inputs.rubocopEnabled == true }} + if: ${{ !cancelled() && steps.rubocop.outputs.rubocop_enabled == 'true' }} env: CHANGED_FILES: ${{ steps.changed_files.outputs.all_changed_files }} run: |