blob: b345ae5110998f99a7881f23a3ae729bb753fc25 [file] [edit]
# Copyright 2021-2026 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
name: Coding style validation
on: [pull_request]
jobs:
check-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
- name: "Get changed files"
env:
NUMBER: ${{ github.event.pull_request.number }}
GH_TOKEN: ${{ github.token }}
run: |
{
echo 'CHANGED_FILES<<EOF'
gh pr view $NUMBER --json files --jq '.files.[].path'
echo EOF
} >> "$GITHUB_ENV"
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd #v3.0.1
with:
extra_args: "--files $CHANGED_FILES"