30 lines
875 B
YAML
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>
|