generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (32 loc) · 1023 Bytes
/
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
name: "nix-update"
on:
schedule:
- cron: '10 5 * * *'
workflow_dispatch:
jobs:
nix-update:
runs-on: ubuntu-latest
environment: GH_PAT
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v14
with:
github-token: ${{ secrets.GH_PAT }}
- uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Show nixpkgs version
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
- name: Setup cachix
uses: cachix/cachix-action@v15
with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
name: pkgs
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "github-action"
- name: nix-update
run: nix run .#update-flake-outputs -- --remote origin --overwrite-existing ./.
env:
GH_TOKEN: ${{ secrets.GH_PAT }}