Skip to content

update-flake-lock

update-flake-lock #4

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
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:
# https://github.com/marketplace/actions/checkout
- name: Checkout Repository
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
# https://github.com/marketplace/actions/the-determinate-nix-installer
- name: Install nix
uses: DeterminateSystems/nix-installer-action@de22e16c4711fca50c816cc9081563429d1cf563 # v10
# https://github.com/marketplace/actions/magic-nix-cache
- name: Use cache
uses: DeterminateSystems/magic-nix-cache-action@fc6aaceb40b9845a02b91e059ec147e78d1b4e41 # v4
# https://github.com/marketplace/actions/update-nix-flake-lock
- name: Update flake.lock
id: update
uses: DeterminateSystems/update-flake-lock@a3ccb8f59719c48d6423e97744560221bcf7a3fa # v21
with:
path-to-flake-dir: infra/nixos
# - 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 }}
- name: diff
run: git diff