Bump Flake Inputs #194
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: Bump Flake Inputs | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
update-lockfile: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Lix | |
run: | | |
curl -sSf -L https://install.lix.systems/lix | sh -s -- install --no-confirm | |
echo "trusted-users = root worker" | sudo tee -a /etc/nix/nix.conf | |
echo "experimental-features = nix-command flakes" | sudo tee -a /etc/nix/nix.conf | |
sudo systemctl restart nix-daemon | |
- name: Nix Magic Cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Update Lockfile | |
uses: DeterminateSystems/update-flake-lock@main | |
id: update | |
with: | |
pr-title: "chore(deps): flake inputs" | |
commit-msg: "chore(deps): flake inputs" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Merge Changes | |
run: gh pr merge ${{ steps.update.outputs.pull-request-number }} --squash --delete-branch | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |