Improve workflows
All checks were successful
Check actions / check-actions-actionlint (push) Successful in 45s
Check actions / check-actions-yamllint (push) Successful in 56s
Run nix flake check / flake-check (push) Successful in 2m5s

This commit is contained in:
2024-10-03 21:19:53 +02:00
parent 842adea065
commit 7450cea426
4 changed files with 47 additions and 9 deletions

33
.github/workflows/actions-check.yaml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Check actions
on:
push:
paths:
- .github/workflows/*.yaml
- .github/workflows/*.yml
pull_request:
paths:
- .github/workflows/*.yaml
- .github/workflows/*.yml
jobs:
check-actions-actionlint:
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:runner-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- run: |
go install github.com/rhysd/actionlint/cmd/actionlint@latest
actionlint .github/workflows/*.yaml
check-actions-yamllint:
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:runner-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
- run: |
pipx run yamllint .github/workflows/*.yaml