Improve workflows
This commit is contained in:
parent
842adea065
commit
7450cea426
33
.github/workflows/actions-check.yaml
vendored
Normal file
33
.github/workflows/actions-check.yaml
vendored
Normal 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
|
4
.github/workflows/flake-check.yaml
vendored
4
.github/workflows/flake-check.yaml
vendored
@ -1,10 +1,10 @@
|
||||
name: flake-check
|
||||
name: Run nix flake check
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
flake-check:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:runner-latest
|
||||
|
7
.github/workflows/flake-update.yaml
vendored
7
.github/workflows/flake-update.yaml
vendored
@ -1,8 +1,8 @@
|
||||
---
|
||||
name: Periodic flake update
|
||||
on:
|
||||
on: # yamllint disable-line rule:truthy
|
||||
schedule:
|
||||
- cron: '0 */2 * * *'
|
||||
workflow_dispatch:
|
||||
- cron: "0 */2 * * *"
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
@ -23,4 +23,3 @@ jobs:
|
||||
run: nix flake update --commit-lock-file
|
||||
- name: push
|
||||
run: git push
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user