Update flake #371
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 }} |