1
0
Fork 0
dotfiles/.forgejo/workflows/update-flake.yml

24 lines
776 B
YAML
Raw Normal View History

2023-12-07 23:57:51 +00:00
name: Update Flake
on:
schedule:
- cron: '0 4 * * *'
jobs:
update-flake:
runs-on: nix-amd64
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: master
2023-12-09 17:16:59 +00:00
- name: Update dependencies
run: |
nix flake update
env NIX_PATH=nixpkgs=$(nix flake metadata github:nixos/nixpkgs/nixos-unstable-small --json | jq -r .path) nix-shell ./home/programs/nvim/update-plugins.sh
2023-12-07 23:57:51 +00:00
- uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "[automation] Update flake"
commit_user_name: Actions Bot
commit_user_email: daniel+actions-bot@kempkens.io
commit_author: Actions Bot <daniel+actions-bot@kempkens.io>