diff options
| author | Albert O'Shea <[email protected]> | 2025-11-21 01:43:13 +1100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-20 08:43:13 -0600 |
| commit | b7b3824d769611a658c727651a6132856c3be3be (patch) | |
| tree | f891fd9ad9308401cd1c6a47e5523e94b2851246 /.github | |
| parent | b12efb2023a65860ba52338bd030d79cdbaa8094 (diff) | |
| download | opencode-b7b3824d769611a658c727651a6132856c3be3be.tar.gz opencode-b7b3824d769611a658c727651a6132856c3be3be.zip | |
nix: update flake.lock as part of the github workflow (#4535)
Co-authored-by: Github Action <[email protected]>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/update-nix-hashes.yml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/update-nix-hashes.yml b/.github/workflows/update-nix-hashes.yml index 311874d82..2f0aeac20 100644 --- a/.github/workflows/update-nix-hashes.yml +++ b/.github/workflows/update-nix-hashes.yml @@ -37,6 +37,11 @@ jobs: git config --global user.email "[email protected]" git config --global user.name "Github Action" + - name: Update flake.lock + run: | + set -euo pipefail + nix flake update + - name: Update node_modules hash run: | set -euo pipefail @@ -62,7 +67,7 @@ jobs: echo "" >> "$GITHUB_STEP_SUMMARY" } - FILES=(flake.nix nix/node-modules.nix nix/hashes.json) + FILES=(flake.lock flake.nix nix/node-modules.nix nix/hashes.json) STATUS="$(git status --short -- "${FILES[@]}" || true)" if [ -z "$STATUS" ]; then summarize "no changes" @@ -71,7 +76,7 @@ jobs: fi git add "${FILES[@]}" - git commit -m "Update Nix hashes" + git commit -m "Update Nix flake.lock and hashes" BRANCH="${TARGET_BRANCH:-${GITHUB_REF_NAME}}" git push origin HEAD:"$BRANCH" |
