Added yamllint rule to ignore "on" in github actions (#11396)

Currently all the github actions return warnings because the "on"
keyword in the yaml files are being interpreted as a "truthy" value by
yamllint. To ignore this behavior I added a rule which ignores the "on".
See https://github.com/adrienverge/yamllint/issues/430.

Signed-off-by: Gabriel Goller <gabriel.goller@acs.it>

Signed-off-by: Gabriel Goller <gabriel.goller@acs.it>
Co-authored-by: Gabriel Goller <gabriel.goller@acs.it>
This commit is contained in:
Gabriel Goller 2022-10-03 12:52:57 +02:00 committed by GitHub
parent 8120af22e2
commit 04dd6be1a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 9 additions and 9 deletions

View file

@ -1,5 +1,5 @@
name: buf.build
on:
on: # yamllint disable-line rule:truthy
pull_request:
paths:
- ".github/workflows/buf-lint.yml"

View file

@ -1,5 +1,5 @@
name: buf.build
on:
on: # yamllint disable-line rule:truthy
push:
branches:
- main

View file

@ -1,6 +1,6 @@
---
name: CI
on:
on: # yamllint disable-line rule:truthy
pull_request:
push:
jobs:

View file

@ -1,7 +1,7 @@
---
name: "CodeQL"
on:
on: # yamllint disable-line rule:truthy
workflow_call:
schedule:
- cron: "26 14 * * 1"

View file

@ -1,4 +1,4 @@
on:
on: # yamllint disable-line rule:truthy
repository_dispatch:
types: [funcbench_start]
name: Funcbench Workflow

View file

@ -1,5 +1,5 @@
name: CIFuzz
on:
on: # yamllint disable-line rule:truthy
workflow_call:
jobs:
Fuzzing:

View file

@ -1,6 +1,6 @@
name: 'Lock Threads'
on:
on: # yamllint disable-line rule:truthy
schedule:
- cron: '13 23 * * *'
workflow_dispatch:

View file

@ -1,4 +1,4 @@
on:
on: # yamllint disable-line rule:truthy
repository_dispatch:
types: [prombench_start, prombench_restart, prombench_stop]
name: Prombench Workflow

View file

@ -1,6 +1,6 @@
---
name: Sync repo files
on:
on: # yamllint disable-line rule:truthy
schedule:
- cron: '44 17 * * *'
jobs: