Files
hawkbit/.github/workflows/style_check.yaml
dependabot[bot] 32f1eab745 Bump actions/checkout from 5 to 6 (#2830)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-24 08:30:57 +02:00

37 lines
806 B
YAML

name: Style Check
on:
pull_request:
paths-ignore:
- '.3rd-party/**'
- 'docs/**'
- '**.md'
workflow_dispatch:
permissions:
contents: read
jobs:
style_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 21
cache: 'maven'
- name: Check code style
run: |
# compare style to target branch
git remote add target ${{ github.event.pull_request.base.repo.clone_url }}
git fetch target
mvn spotless:check -DratchetFrom=${{ github.event.pull_request.base.sha }}