From d133d69cb9e6c69794b758b0b4868f16fd10ca47 Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 14 Apr 2026 14:22:52 -0700 Subject: [PATCH] Update nix version in cicd --- .github/workflows/cicd.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 2866455..d8c516a 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -110,6 +110,15 @@ jobs: exit 1 fi + - name: Update version in flake.nix + shell: bash + env: + VERSION: ${{ inputs.version }} + run: | + set -euo pipefail + sed -i "s/version = \"[0-9]*\.[0-9]*\.[0-9]*\(-rc\.[0-9]*\)\?\"/version = \"$VERSION\"/" flake.nix + echo "Updated flake.nix version to $VERSION" + - name: Create and push tag shell: bash env: @@ -127,6 +136,11 @@ jobs: echo "Tag $VERSION already exists" >&2 exit 1 fi + if ! git diff --quiet flake.nix; then + git add flake.nix + git commit -m "chore(nix): update version to $VERSION" + git push origin "$TARGET_BRANCH" + fi git tag -a "$VERSION" -m "Release $VERSION" git push origin "refs/tags/$VERSION"