Skip to content

Commit

Permalink
feat: automatically regenerate deps-lock.json
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
srounce committed Apr 29, 2024
1 parent 57c0916 commit fb23367
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deps-lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Update deps-lock.json"
on:
push:
paths:
- "deps.edn"

permissions:
contents: write

jobs:
update-lock:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- uses: cachix/install-nix-action@v25

- uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Update deps-lock
run: "nix run github:jlesquembre/clj-nix#deps-lock"

- name: Commit and push
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: regenerate deps-lock.json"
file_pattern: "deps-lock.json"

0 comments on commit fb23367

Please sign in to comment.