Update flake.lock #175
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: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * 6" # At 00:00 on Saturday | |
jobs: | |
lockfile: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v26 | |
with: | |
nix_path: nixpkgs=channel:nixos-24.05 | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- uses: cachix/cachix-action@v15 | |
with: | |
name: truelecter | |
extraPullNames: cuda-maintainers, mic92, nix-community, nrdxp | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- name: Configure git | |
run: | | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config user.name "github-actions[bot]" | |
- name: Update nvfetcher packages | |
run: | | |
nix develop '.#ci' --command bash -c "update-cell-sources ALL" | |
git commit -am "deps(sources): Updated cell sources" || true | |
- name: Update deps hashes packages | |
run: | | |
nix run '.#mainsail.npmDepsHash' > cells/klipper/packages/_deps-hash/mainsail-npm.nix | |
git commit -am "deps(sources): Updated deps hash" || true | |
- name: Update flake.lock | |
uses: DeterminateSystems/update-flake-lock@v21 | |
id: ufl | |
with: | |
commit-msg: "deps(flake-lock): Updated flake.lock" | |
pr-title: "[Automated] Update 'flake.lock' and sources" | |
branch: "auto/upgrade-dependencies" | |
token: ${{ secrets.PR_WF_ENABLED_TOKEN }} | |
pr-labels: | | |
dependencies | |
automated | |
- name: Enable auto-merge | |
uses: peter-evans/enable-pull-request-automerge@v3 | |
if: ${{ steps.ufl.outputs.pull-request-number }} | |
with: | |
token: ${{ secrets.PR_WF_ENABLED_TOKEN }} | |
pull-request-number: ${{ steps.ufl.outputs.pull-request-number }} |