Skip to content

Commit f5c2dc4

Browse files
committed
add ci to template
1 parent 7e4be56 commit f5c2dc4

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
workflow_dispatch:
5+
push:
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
8+
cancel-in-progress: true
9+
jobs:
10+
DeterminateCI:
11+
uses: DeterminateSystems/ci/.github/workflows/workflow.yml@main
12+
permissions:
13+
id-token: "write"
14+
contents: "read"
15+
with:
16+
fail-fast: false
17+
flake-checker:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Check Nix flake Nixpkgs inputs
22+
uses: DeterminateSystems/flake-checker-action@v9
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Maintenance
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "0 0 * * 0" # runs weekly on Sunday at 01:00
6+
jobs:
7+
nix-maintenance:
8+
name: Nix Maintenance
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: DeterminateSystems/nix-installer-action@main
13+
with:
14+
determinate: true
15+
- uses: DeterminateSystems/flakehub-cache-action@main
16+
- uses: DeterminateSystems/update-flake-lock@main
17+
with:
18+
pr-title: "Update flake.lock"
19+
pr-labels: |
20+
dependencies
21+
automated
22+
- uses: DeterminateSystems/flake-checker-action@main
23+
with:
24+
fail-mode: true

0 commit comments

Comments
 (0)