Update .forgejo/workflows/update.yml
This commit is contained in:
parent
4683d6953f
commit
af1f5c9a04
1 changed files with 0 additions and 0 deletions
33
.forgejo/workflows/update.yml
Normal file
33
.forgejo/workflows/update.yml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
name: Update flake inputs
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 4 * * *' # Daily at 4am UTC
|
||||
workflow_dispatch: # Allow manual trigger from GitHub Actions tab
|
||||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v31
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
|
||||
- name: Update flake inputs
|
||||
run: nix flake update
|
||||
|
||||
- name: Commit updated flake.lock
|
||||
uses: stefanzweifel/git-auto-commit-action@v7
|
||||
with:
|
||||
commit_message: "flake: update inputs"
|
||||
file_pattern: flake.lock
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue