Implement custom action to collect changes / matrix (#9)

This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-07-29 14:26:42 +02:00 committed by GitHub
parent fe0b8338e0
commit 01e39f181c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 22213 additions and 183 deletions

View file

@ -4,6 +4,8 @@ on:
workflow_call:
inputs:
modifiedFiles:
description: >
A JSON encoded array of files to check
required: true
type: string
@ -18,4 +20,4 @@ jobs:
- name: Run against changes
uses: pre-commit/action@v3.0.0
with:
extra_args: --files ${{ inputs.modifiedFiles }} --config .ci/pre-commit/config.yaml
extra_args: --files ${{ join(fromJson(inputs.modifiedFiles), ' ') }} --config .ci/pre-commit/config.yaml