mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 22:29:06 +01:00
21 lines
635 B
YAML
21 lines
635 B
YAML
name: "Update"
|
|
on:
|
|
schedule:
|
|
- cron: "0 4 * * 2,6" # Tue, Sat at 04:00 UTC
|
|
workflow_dispatch:
|
|
jobs:
|
|
update:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
token: ${{ secrets.PAT }}
|
|
- uses: cachix/install-nix-action@v31
|
|
with:
|
|
extra_nix_config: experimental-features = nix-command flakes pipe-operators
|
|
- name: Update and push
|
|
run: |
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
nix flake update --commit-lock-file
|
|
git push
|