From 649d025bb02d5062db95cc9c8003a91dd6d6b3dc Mon Sep 17 00:00:00 2001 From: schererleander Date: Thu, 18 Dec 2025 11:56:33 +0100 Subject: chore(deps): Add GitHub Action for updating dependencies --- .github/workflows/update-deps.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/update-deps.yml (limited to '.github/workflows/update-deps.yml') diff --git a/.github/workflows/update-deps.yml b/.github/workflows/update-deps.yml new file mode 100644 index 0000000..95ee71e --- /dev/null +++ b/.github/workflows/update-deps.yml @@ -0,0 +1,33 @@ +name: Update Dependencies + +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * 1" + +jobs: + update-deps: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - uses: actions/checkout@v4 + + - uses: cachix/install-nix-action@v31 + with: + extra_nix_config: "extra-experimental-features = nix-command flakes" + + - name: Update and Hash + run: | + npm update + NEW_HASH=$(nix shell nixpkgs#prefetch-npm-deps -c prefetch-npm-deps package-lock.json) + sed -i "s|npmDepsHash = ".*"|npmDepsHash = \"$NEW_HASH\"|" flake.nix + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + commit-message: "chore(deps): update npm dependencies" + title: "chore(deps): update dependencies" + branch: "chore/update-deps" + delete-branch: true -- cgit v1.3.1