ci/cd: workflow changes
This commit is contained in:
parent
637a3839d7
commit
4132420034
4 changed files with 53 additions and 34 deletions
1
.github/workflows/alejandra.toml
vendored
Normal file
1
.github/workflows/alejandra.toml
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
indentation = "FourSpaces"
|
||||
21
.github/workflows/flake-check-action.yaml
vendored
Normal file
21
.github/workflows/flake-check-action.yaml
vendored
Normal 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"
|
||||
34
.github/workflows/flake-lock-action.yaml
vendored
34
.github/workflows/flake-lock-action.yaml
vendored
|
|
@ -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
|
||||
31
.github/workflows/flake-update-action.yaml
vendored
Normal file
31
.github/workflows/flake-update-action.yaml
vendored
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue