corpus

Log | Files | Refs | README | LICENSE

commit 3d4ee887ba923537e7ffea5fbaf6b4daa983ed4d
parent 6b1b56796a80f586dd9feebffc8e18b3f0b7f396
Author: mtmn <miro@haravara.org>
Date:   Thu, 30 Apr 2026 23:17:46 +0200

fix: still need that hash workflow, whoops

Diffstat:
M.github/workflows/release-please.yml | 21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml @@ -18,3 +18,24 @@ jobs: id: release with: token: ${{ secrets.GITHUB_TOKEN }} + + update-nix-hash: + runs-on: ubuntu-latest + needs: release-please + if: ${{ needs.release-please.outputs.prs_created == 'true' }} + steps: + - uses: DeterminateSystems/nix-installer-action@da36cb69b1c3247ad7a1f931ebfd954a1105ef14 # v14 + - name: Update npmDepsHash + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: ${{ needs.release-please.outputs.pr_branch }} + run: | + git clone --depth=1 --branch="$BRANCH" \ + "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git" . + hash=$(nix run nixpkgs#prefetch-npm-deps -- package-lock.json) + sed -i "s|npmDepsHash = \"sha256-[^\"]*\"|npmDepsHash = \"$hash\"|" flake.nix + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add flake.nix + git diff --staged --quiet || git commit -m "chore: update npmDepsHash" + git push