stylix: yamlint ignore truthy for workflows (#1116)

Link: https://github.com/nix-community/stylix/pull/1116

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
awwpotato 2025-05-31 11:44:33 -07:00 committed by GitHub
parent 093087e969
commit 64b9f2c2df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 16 additions and 10 deletions

View file

@ -3,7 +3,7 @@
# https://github.com/NixOS/nixpkgs/blob/2566f9dcb469b06241519a8185863d67773f943a/.github/workflows/backport.yml
name: Backport
on: # yamllint disable-line rule:truthy
on:
pull_request_target:
types: [closed, labeled]

View file

@ -1,7 +1,7 @@
---
name: Check
on: # yamllint disable-line rule:truthy
on:
push:
branches:
- master

View file

@ -1,7 +1,7 @@
---
name: Label Merge Conflicts
on: # yamllint disable-line rule:truthy
on:
push:
branches:
- master

View file

@ -1,7 +1,7 @@
---
name: Docs
on: # yamllint disable-line rule:truthy
on:
push:
branches:
- master

View file

@ -9,7 +9,7 @@
---
name: "Label PR"
on: # yamllint disable-line rule:truthy
on:
pull_request_target:
types: [edited, opened, synchronize, reopened]

View file

@ -1,7 +1,7 @@
---
name: Update flake inputs
on: # yamllint disable-line rule:truthy
on:
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
@ -34,11 +34,11 @@ jobs:
commit-msg: "flake: update all inputs"
pr-title: "${{ startsWith(matrix.branch, 'release') && format('[{0}] ', matrix.branch) || '' }}stylix: update all flake inputs" # yamllint disable-line rule:line-length
pr-labels: "topic: dependencies"
# yamllint disable rule:line-length
pr-body: |
Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action.
pr-body: >
Automated changes by the
[update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock)
GitHub Action.
```
{{ env.GIT_COMMIT_MESSAGE }}
```
# yamllint enable rule:line-length

6
.yamllint.yml Normal file
View file

@ -0,0 +1,6 @@
---
extends: default
rules:
truthy:
ignore: .github/workflows/*