ci/cd: workflow changes

This commit is contained in:
hand7s 2025-04-27 12:38:05 +03:00
parent 637a3839d7
commit 4132420034
No known key found for this signature in database
4 changed files with 53 additions and 34 deletions

1
.github/workflows/alejandra.toml vendored Normal file
View file

@ -0,0 +1 @@
indentation = "FourSpaces"

View file

@ -0,0 +1,21 @@
---
name: "Flake Check Action"
run-name: "nfc"
on:
workflow_dispatch:
push:
jobs:
checker:
runs-on: "ubuntu-latest"
steps:
- name: "repo checkout"
uses: "actions/checkout@v4"
- name: "nix install"
uses: "DeterminateSystems/nix-installer-action@v16"
- name: "flake check"
uses: "DeterminateSystems/flake-checker-action@v5"
- name: "Deadnix check"
run: "nix run github:astro/deadnix#deadnix -- -f"
- name: "Alejandra check"
run: "nix run github:kamadorueda/alejandra#alejandra -- -c --experimental-config ./alejandra.toml"

View file

@ -1,34 +0,0 @@
---
name: "Flake Lock Update Action"
run-name: "nfu"
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
jobs:
locker:
runs-on: ubuntu-latest
steps:
- name: repo checkout
uses: actions/checkout@v4
- name: nix install
uses: DeterminateSystems/nix-installer-action@v16
with:
extra_nix_config: |
experimental-features = nix-command flakes
- name: flake check
uses: DeterminateSystems/flake-checker-action@v5
- name: flake update
uses: DeterminateSystems/update-flake-lock@v24
with:
pr-title: "Update flake.lock Action"
pr-labels: |
CI/CD
automated
git-author-name: John Nix
git-author-email: github-actions[bot]@users.noreply.github.com
git-committer-name: John Nix
git-committer-email: github-actions[bot]@users.noreply.github.com
pr-assignees: s0me1newithhand7s
pr-reviewers: s0me1newithhand7s

View file

@ -0,0 +1,31 @@
---
name: "Flake Update Action"
run-name: "nfu"
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
jobs:
locker:
runs-on: "ubuntu-latest"
steps:
- name: "repo checkout"
uses: "actions/checkout@v4"
- name: "nix install"
uses: "DeterminateSystems/nix-installer-action@v16"
- name: "flake check"
uses: "DeterminateSystems/flake-checker-action@v5"
- name: "flake update"
uses: "DeterminateSystems/update-flake-lock@v24"
with:
pr-title: "Update flake.lock Action"
pr-labels: |
"CI/CD"
"automated"
git-author-name: "John Nix"
git-author-email: "github-actions[bot]@users.noreply.github.com"
git-committer-name: "John Nix"
git-committer-email: "github-actions[bot]@users.noreply.github.com"
pr-assignees: "s0me1newithhand7s"
pr-reviewers: "s0me1newithhand7s"