-
-
Notifications
You must be signed in to change notification settings - Fork 361
39 lines (39 loc) · 1.02 KB
/
update.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
name: "Update"
on:
workflow_dispatch:
schedule:
# chosen by fair dice rolling
- cron: '40 * * * *'
push:
branches:
- master
jobs:
update_nur:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
experimental-features = nix-command flakes
- name: update nur / nur-combined
run: ./ci/update-nur.sh
env:
API_TOKEN_GITHUB: '${{ secrets.API_TOKEN_GITHUB }}'
update_search:
runs-on: ubuntu-latest
needs: update_nur
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
experimental-features = nix-command flakes
- name: update nur-search/data/packages.json
run: ./ci/update-nur-search.sh
env:
API_TOKEN_GITHUB: '${{ secrets.API_TOKEN_GITHUB }}'