/
githubmirror
/
rsyslog
Обзор
Документация
Войти
/
githubmirror
/
rsyslog
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/ci_codestyle_check.yml
49 строк
1 KB
dependabot[bot]
ci: bump the github-actions group with 6 updates
21 июл 2026, 18:56
Не верифицирован
21 июл 2026, 18:56
3b40a2a
Код
Авторство
О чём код?
name: "Code Style Check" on: pull_request: permissions: contents: read concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: style-check: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Detect changed files id: code_changes uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6 with: files: | **/*.c **/*.h devtools/format-code.sh - name: Enforce code style env: ANY_CHANGED: ${{ steps.code_changes.outputs.any_changed }} run: | if [ "$ANY_CHANGED" != "true" ]; then echo "No code changes detected; skipping style check." exit 0 fi chmod +x devtools/format-code.sh ./devtools/format-code.sh if ! git diff --exit-code; then echo "::error ::Code style violations detected." echo "Contributors: to fix this, run './devtools/format-code.sh' locally" echo "and push the updated commit to your branch." echo "Ensure 'Allow edits from maintainers' is enabled on this PR so maintainers" echo "can help apply formatting fixes if needed." exit 1 fi