Skip to content

update-flake-lock

update-flake-lock #100

name: update-flake-lock
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1,5' # 00:00 AM on Mondays and Fridays.
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