-
-
Notifications
You must be signed in to change notification settings - Fork 14
52 lines (48 loc) · 1.44 KB
/
Copy pathautomation.yml
File metadata and controls
52 lines (48 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: automation
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
automation:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- uses: actions/checkout@v6
- uses: DeterminateSystems/nix-installer-action@main
with:
determinate: true
- uses: DeterminateSystems/flakehub-cache-action@main
- run: |
nix flake update
nix run .#update-versions
nix run .#update-templates
nix flake check --keep-going
nix run .#test-0_16-all
nix run .#test-0_15-all
nix run .#test-0_14-all
nix run .#readme > README.md
- uses: test-room-7/action-update-file@v2.1.0
with:
branch: ${{ github.head_ref || github.ref_name }}
file-path: |
flake.lock
src/zig/versions.nix
templates/**
README.md
commit-msg: Automatic update
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/flakehub-push@main
with:
name: Cloudef/zig2nix
rolling: true
visibility: public
include-output-paths: true
- uses: cachix/cachix-action@master
with:
name: zig2nix
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
skipAddingSubstituter: true