nixos-config/.github/workflows/update.yaml
Charlotte 🦝 Delenk 6ea0e40c96
All checks were successful
update-riscv / pr (push) Successful in 3s
why
2024-10-13 13:17:03 +02:00

30 lines
875 B
YAML

name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: "3 18 * * *"
jobs:
lockfile:
runs-on: docker
container:
image: nixpkgs/nix
steps:
- run: nix-channel --add https://nixos.org/channels/nixos-unstable nixpkgs
- run: nix-channel --update
- run: nix-env -iA nixpkgs.nodejs
- name: Checkout repository
uses: actions/checkout@v4
- name: update flake lock
run: nix flake update
- name: run update script
run: |
cd packages
yes "" | ./update.sh
- name: run nix fmt
run: nix fmt
- name: Commit and push
uses: https://github.com/peter-evans/create-pull-request@v7
with:
commit-message: "Automatic Update"
title: Run automatic update
author: GitHub <noreply@github.com>