Skip to content

Update flake inputs #294

Update flake inputs

Update flake inputs #294

# This is a basic workflow to help you get started with Actions
name: Update flake inputs
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
schedule:
- cron: '0 0 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Set up Nix
uses: cachix/install-nix-action@v31
- name: Update flake inputs
run: |
nix flake update
- name: Commit
run: |
git config user.name "Github actions"
git config user.email "actions@github.com"
git add flake.lock
git commit -m "chore: update flake inputs" || exit 0
- name: Push
run: |
git push