[feat] ci: schedule lockfile updates
This commit is contained in:
parent
82b37311a9
commit
b242bebd8f
1 changed files with 24 additions and 4 deletions
|
@ -1,9 +1,12 @@
|
|||
on: [push]
|
||||
on:
|
||||
push:
|
||||
schedule:
|
||||
- cron: '12 5 * * *'
|
||||
jobs:
|
||||
check:
|
||||
runs-on: nixos
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- uses: "https://code.forgejo.org/actions/checkout@v4"
|
||||
- run: nix --version
|
||||
- run: nix flake check --keep-going --verbose
|
||||
build:
|
||||
|
@ -11,10 +14,27 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
target:
|
||||
- audiomenu
|
||||
- docs
|
||||
- nvim
|
||||
- jpassmenu
|
||||
- nixosConfigurations.vm.config.system.build.toplevel
|
||||
- nvim
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- uses: "https://code.forgejo.org/actions/checkout@v4"
|
||||
- run: nix --version
|
||||
- run: nix build --print-build-logs '.#${{ matrix.target }}'
|
||||
update-lockfile:
|
||||
needs: [check build]
|
||||
runs-on: nixos
|
||||
if: github.event_name == "schedule"
|
||||
steps:
|
||||
- uses: "https://code.forgejo.org/actions/checkout@v4"
|
||||
- run: nix --version
|
||||
- run: nix flake update
|
||||
- name: nix flake update
|
||||
run: |
|
||||
git config user.name 'forgejo-actions'
|
||||
git config user.email 'forgejo-actions@noreply.salame.cl'
|
||||
nix flake update --commit-lock-file
|
||||
- run: nix flake check --keep-going --verbose
|
||||
- run: git push
|
||||
|
|
Loading…
Reference in a new issue