Skip to content

Commit 40d6c79

Browse files
srounceships
authored andcommitted
feat: Automatically regenerate deps-lock.json
The deps-lock.json file should be regenerated whenever deps.edn changes, rather than being edited by hand. This commit avoids having to manually do this chore by regenerating deps-lock.json automatically and commiting it to you branch. This automation is in an effort to avoid contributors getting blocked due to confusing errors when deps-lock.json has either not been regenerated or edited by hand.
1 parent f527e44 commit 40d6c79

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/deps-lock.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Update deps-lock.json"
2+
on:
3+
push:
4+
paths:
5+
- "deps.edn"
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
update-lock:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
ref: ${{ github.head_ref }}
18+
19+
- uses: cachix/install-nix-action@v25
20+
21+
- uses: DeterminateSystems/magic-nix-cache-action@v2
22+
23+
- name: Update deps-lock
24+
run: "nix run github:jlesquembre/clj-nix#deps-lock"
25+
26+
- name: Commit and push
27+
uses: stefanzweifel/git-auto-commit-action@v5
28+
with:
29+
commit_message: "chore: regenerate deps-lock.json"
30+
file_pattern: "deps-lock.json"

0 commit comments

Comments
 (0)