`verbose` was only set here as a work-around to make sure users saw the output of `validate` since there was no fail signal from the executable. As of https://code.forgejo.org/forgejo/runner/pulls/1009 there now is a signal that the validation failed which pre-commit can pick up on, so we no longer need to default `verbose` to be on. <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - bug fixes - [PR](https://code.forgejo.org/forgejo/runner/pulls/1015): <!--number 1015 --><!--line 0 --><!--description Zml4KHByZS1jb21taXQpOiBkb27igJl0IGRlZmF1bHQgYHZlcmJvc2VgIHRvIG9u-->fix(pre-commit): don’t default `verbose` to on<!--description--> <!--end release-notes-assistant--> Co-authored-by: Frederik “Freso” S. Olesen <freso.dk@gmail.com> Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/1015 Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org> Co-authored-by: Freso <freso@noreply.code.forgejo.org> Co-committed-by: Freso <freso@noreply.code.forgejo.org>
13 lines
565 B
YAML
13 lines
565 B
YAML
- id: forgejo-runner-validate
|
|
name: Validate Forgejo Actions files
|
|
description: This hook validates Forgejo Actions action and workflow files.
|
|
language: golang
|
|
entry: runner validate
|
|
args: ['--directory', '.']
|
|
pass_filenames: false
|
|
files: (?:(?:^|/)action|^\.(?:forgejo|github|gitea)/workflows/[^/\n]+)\.ya?ml$
|
|
types: [yaml]
|
|
# 3.2.0 is when the pre-* `stages` used here were added.
|
|
# Old names (without the pre- prefix) are deprecated since 4.0.0.
|
|
minimum_pre_commit_version: '3.2.0'
|
|
stages: [pre-commit, pre-merge-commit, pre-push, manual]
|