Skip to content

update-flake-lock

update-flake-lock #159

name: update-flake-lock
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1' # 00:00 AM on Mondays.
jobs:
update-flake-lock:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v19
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup git credentials
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- run: nix flake update --commit-lock-file
- run: nix flake check
- run: git push