Skip to content

update-flake-inputs #160

update-flake-inputs

update-flake-inputs #160

name: update-flake-inputs
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
jobs:
update-flake-inputs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
id: update
- name: Merge PR
run: gh pr merge --auto "${{ steps.update.outputs.pull-request-number }}" --rebase --delete-branch
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
if: ${{ steps.update.outputs.pull-request-number != '' }}