nixos-config/.forgejo/workflows/nightly-update.yaml
Christoph Hollizeck a55e34e508
Some checks failed
/ update (push) Failing after 8m53s
forgjo-actions: build on push
2025-11-30 03:10:47 +01:00

35 lines
1 KiB
YAML

on:
push:
branches: [main]
schedule:
- cron: 0 */6 * * *
jobs:
update:
runs-on: native
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Update flake
if: ${{ github.event_name == 'schedule' }}
run: |
cd ${{ env.FORGEJO_WORKSPACE }}
nix flake update
- name: Commit new Flake.lock
if: ${{ github.event_name == 'schedule' }}
run: |
git config --local user.email "christoph.hollizeck@hey.com"
git config --local user.name "forgjo-actions[bot]"
git commit -a -m "chore: update flake"
- name: Push changes
if: ${{ github.event_name == 'schedule' }}
run: git push
- name: Build Loptland
run: |
cd ${{ env.FORGEJO_WORKSPACE }}
nix build .#nixosConfigurations.loptland.config.system.build.toplevel
- name: Build Yggdrasil
run: |
cd ${{ env.FORGEJO_WORKSPACE }}
nix build .#nixosConfigurations.yggdrasil.config.system.build.toplevel