Compare commits

..

1 commit

Author SHA1 Message Date
Jade Ellis
0145e9fdcd
ci: fixes 2025-06-21 18:06:36 +01:00
3 changed files with 3 additions and 15 deletions

View file

@ -23,6 +23,6 @@ indent_size = 2
indent_style = tab
max_line_length = 98
[*.yml]
[{**/*.yml}]
indent_size = 2
indent_style = space

View file

@ -1,6 +1,6 @@
name: prefligit
description: |
Runs prefligit, pre-commit reimplemented in Rust.
Runs reflighit, pre-commit reimplemented in Rust.
inputs:
extra_args:
description: options to pass to pre-commit run
@ -10,11 +10,6 @@ inputs:
runs:
using: composite
steps:
- name: Install uv
uses: https://github.com/astral-sh/setup-uv@v6
with:
enable-cache: true
ignore-nothing-to-cache: true
- name: Install Prefligit
shell: bash
run: |
@ -23,5 +18,5 @@ runs:
with:
path: ~/.cache/prefligit
key: prefligit-0|${{ hashFiles('.pre-commit-config.yaml') }}
- run: prefligit run --show-diff-on-failure --color=always -v ${{ inputs.extra_args }}
- run: prefligit run --show-diff-on-failure --color=always ${{ inputs.extra_args }}
shell: bash

View file

@ -3,8 +3,6 @@ name: Checks / Prefligit
on:
push:
pull_request:
permissions:
contents: read
jobs:
prefligit:
@ -13,11 +11,6 @@ jobs:
FROM_REF: ${{ github.event.pull_request.base.sha || (!github.event.forced && ( github.event.before != '0000000000000000000000000000000000000000' && github.event.before || github.sha )) || format('{0}~', github.sha) }}
TO_REF: ${{ github.sha }}
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.2
with:
persist-credentials: false
depth: 0 # we need to be able to get diffs
- uses: ./.forgejo/actions/prefligit
with:
extra_args: --from-ref ${{ env.FROM_REF }} --to-ref ${{ env.TO_REF }} --hook-stage manual