mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Add DISABLE_REDOT_GET_CHANGED_FILES to CI static checks
For cases where static checks would generate too many changed files to send to pre-commit
This commit is contained in:
9
.github/workflows/static_checks.yml
vendored
9
.github/workflows/static_checks.yml
vendored
@@ -2,6 +2,9 @@ name: 📊 Static Checks
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
env:
|
||||
DISABLE_REDOT_GET_CHANGED_FILES: true
|
||||
|
||||
jobs:
|
||||
static-checks:
|
||||
name: Code style, file formatting, and docs
|
||||
@@ -19,6 +22,7 @@ jobs:
|
||||
bash ./misc/scripts/gitignore_check.sh
|
||||
|
||||
- name: Get changed files
|
||||
if: ${{ env.DISABLE_REDOT_GET_CHANGED_FILES != 'true' }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
@@ -31,10 +35,15 @@ jobs:
|
||||
echo "CHANGED_FILES=$files" >> $GITHUB_ENV
|
||||
|
||||
- name: Style checks via pre-commit
|
||||
if: ${{ env.DISABLE_REDOT_GET_CHANGED_FILES != 'true' }}
|
||||
uses: pre-commit/action@v3.0.1
|
||||
with:
|
||||
extra_args: --files ${{ env.CHANGED_FILES }}
|
||||
|
||||
- name: Style checks via pre-commit
|
||||
if: ${{ env.DISABLE_REDOT_GET_CHANGED_FILES == 'true' }}
|
||||
uses: pre-commit/action@v3.0.1
|
||||
|
||||
- name: Class reference schema checks
|
||||
run: |
|
||||
sudo apt install -y libxml2-utils
|
||||
|
||||
Reference in New Issue
Block a user