-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (42 loc) · 1.16 KB
/
checks.yaml
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
name: "CI"
on:
push:
branches:
- main
- trying
- staging
schedule:
- cron: "0 0 * * SAT" # every sunday
jobs:
nix-build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Install nixci
shell: bash
run: nix profile install nixpkgs#nixci
# CI workflows
- name: Run Nix Flake Show
run: nix flake show
- name: Run nvfetcher-github
if: ${{ github.event_name == 'schedule' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
nix develop ./nix/std -c nvfetcher-all
- name: Build packages with nixci
run: nixci build
- name: Create Pull Request
if: ${{ env.COMMIT_MSG != null }}
uses: peter-evans/create-pull-request@v6
with:
commit_message: ${{ env.COMMIT_MSG }}
title: Update Packages
delete-branch: true
branch: update-packages