This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-07-26 22:10:06 +02:00
parent 2f22fc96f3
commit 9886e96d74
No known key found for this signature in database
GPG key ID: BC5E2BD907F9A8EC
6 changed files with 65 additions and 3 deletions

View file

@ -13,7 +13,7 @@ on:
jobs:
lint:
name: Lint charts
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3

View file

@ -22,7 +22,7 @@ on:
jobs:
pr-metadata:
name: Collect PR metadata
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
isRenovatePR: ${{ startsWith(steps.branch-name.outputs.current_branch, 'renovate/') }}
isFork: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
@ -46,7 +46,7 @@ jobs:
pr-changes:
name: Collect PR changes
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
addedOrModified: ${{ steps.collect-changes.outputs.changesDetected }}
addedOrModifiedFiles: ${{ steps.collect-changes.outputs.addedOrModifiedFiles }}

21
.github/workflows/pre-commit-check.yaml vendored Normal file
View file

@ -0,0 +1,21 @@
name: "Pre-commit consistency check"
on:
workflow_call:
inputs:
modifiedFiles:
required: true
type: string
jobs:
pre-commit-check:
name: Run pre-commit checks
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run against changes
uses: pre-commit/action@v3.0.0
with:
extra_args: --files ${{ inputs.modifiedFiles }} --config .ci/pre-commit/config.yaml