update-flake-lock #319
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-lock | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '37 0 * * *' | |
permissions: | |
actions: write | |
contents: write | |
pull-requests: write | |
jobs: | |
lockfile: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | |
- name: Install nix | |
uses: DeterminateSystems/nix-installer-action@cd46bde16ab981b0a7b2dce0574509104543276e # v9 | |
with: | |
extra-conf: | | |
extra-platforms = aarch64-linux i686-linux | |
- name: Use cache | |
uses: DeterminateSystems/magic-nix-cache-action@eeabdb06718ac63a7021c6132129679a8e22d0c7 # v3 | |
- name: Update flake.lock | |
id: update | |
uses: DeterminateSystems/update-flake-lock@a3ccb8f59719c48d6423e97744560221bcf7a3fa # v21 | |
- name: Enable automerge | |
if: ${{ steps.update.outputs.pull-request-number != '' }} | |
run: gh pr merge --squash --auto ${{ steps.update.outputs.pull-request-number }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |