Skip to content

Commit

Permalink
Merge pull request #11 from fjij/add-weekly-flake-updates
Browse files Browse the repository at this point in the history
Add weekly flake updates
  • Loading branch information
fjij authored Jan 29, 2025
2 parents b6817d4 + 8cbad19 commit 793d241
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Update flake.lock

on:
schedule:
- cron: '0 0 * * 0' # Runs every Sunday at midnight

jobs:
update-flake-lock:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Update flake.lock
run: nix flake update

- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git commit -am 'Update flake.lock'
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update flake.lock
title: Update flake.lock
body: This PR updates the flake.lock file to the latest versions of dependencies.

0 comments on commit 793d241

Please sign in to comment.