update flake.lock #170
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: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
nix-flake-update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: install nix | |
uses: cachix/install-nix-action@v15 | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: update flake.lock | |
run: | | |
nix flake update | |
[[ $(git diff flake.lock) != "" ]] || exit 0 | |
git config --local user.name "Hacl Bot" | |
git config --local user.email "[email protected]" | |
git add flake.lock | |
git commit -m "[CI] update flake.lock" | |
- name: push | |
uses: ad-m/github-push-action@master | |
with: | |
branch: update-flake-lock | |
force: true |