Skip to content

Update flake

Update flake #371

Workflow file for this run

---
name: Update flake
on:
schedule:
# Leave enough margin for Neovim to tag nightly
- cron: 0 21 * * *
workflow_dispatch:
jobs:
flake-update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Use magic cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Update flake.lock
id: update
uses: DeterminateSystems/update-flake-lock@main
with:
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
inputs: nixpkgs nightly-overlay # stable
- name: Set auto-merge flag on the PR
if: steps.update.outputs.pull-request-number != ''
run: gh pr merge ${{ steps.update.outputs.pull-request-number }} --auto --merge
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_FOR_UPDATES }}