-
-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (37 loc) · 1.1 KB
/
automation.yml
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
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@v4
- uses: DeterminateSystems/nix-installer-action@main
with:
determinate: true
- uses: DeterminateSystems/flakehub-cache-action@main
- uses: cachix/cachix-action@master
with:
name: zig2nix
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
skipAddingSubstituter: true
- run: |
nix run .#update-versions > versions.json
nix run .#update-templates
nix run .#test.all
nix run .#readme > README.md
- uses: test-room-7/action-update-file@v2.0.0
with:
branch: ${{ github.head_ref || github.ref_name }}
file-path: |
versions.json
templates/**
README.md
commit-msg: Automatic update
github-token: ${{ secrets.GITHUB_TOKEN }}