Files
chromebrew/.github/workflows/Rubocop.yml
Satadru Pramanik, DO, MPH, MEng e0e4e1bc1a Add regenerate_pr label usage to workflow. (#14812)
* Add regenerate_pr label usage to workflow.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust branch detection in workflow and use actions/checkout@v6 in workflows.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust {{ inputs.branch || github.ref_name }} to {{ inputs.branch || github.head_ref || github.ref_name }} to handle invocation of worflows from more types of actions.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
2026-02-25 20:49:39 +00:00

26 lines
644 B
YAML

---
name: Rubocop
on: workflow_call
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.CREW_PR_TOKEN }}
GH_TOKEN: ${{ secrets.CREW_PR_TOKEN }}
jobs:
rubocop:
runs-on: ubuntu-24.04
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: '4.0.1'
- name: Rubocop
uses: reviewdog/action-rubocop@v2
with:
fail_level: any
filter_mode: nofilter
only_changed: true
reporter: github-pr-review
rubocop_extensions: rubocop-chromebrew