Skip to content

Update lockfiles

Update lockfiles #8

Workflow file for this run

name: Update lockfiles
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
update-locks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Set Git user info
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Update flake inputs
run: |
nix flake update --commit-lock-file
- name: Update upstream sources
run: |
nix develop -c nvfetcher --commit-changes
- name: Create PR
id: cpr
uses: peter-evans/create-pull-request@v5
with:
base: "main"
branch: "update-locks"
delete-branch: true
title: "chore: update locks"
body: "Automated pull request to update flake.lock and nvfetcher sources"
- name: Enable Pull Request Automerge
if: steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v3
with:
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
merge-method: merge