Lock Updater #30275
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: "Lock Updater" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 * * * *' | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Install nix | |
uses: cachix/install-nix-action@v14 | |
with: | |
install_url: https://github.com/numtide/nix-unstable-installer/releases/latest/download/install | |
extra_nix_config: | | |
experimental-features = nix-command flakes | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
system-features = nixos-test benchmark big-parallel kvm | |
- name: Set up git | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- name: Update lock file | |
run: nix flake update --commit-lock-file | |
- name: Push changes | |
run: git push | |