Skip to content

Update workflows

Update workflows #23

Workflow file for this run

name: "flake check"
on:
push:
branches: [ main ]
tags: [ '*' ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [ "unstable", "stable" ]
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
- name: patch stable
if: matrix.target == "stable"

Check failure on line 24 in .github/workflows/flake-build.yaml

View workflow run for this annotation

GitHub Actions / flake check

Invalid workflow file

The workflow is not valid. .github/workflows/flake-build.yaml (Line: 24, Col: 13): Unexpected symbol: '"stable"'. Located at position 18 within expression: matrix.target == "stable"
run: |
sed -i flake.nix \
-e 's|url = "github:NixOS/nixpkgs/nixos-unstable"|follows = "nixpkgs-stable"|g' \
-e 's|url = "github:nix-community/home-manager"|follows = "home-manager-stable"|g' \
-e 's|url = "github:nix-community/nixvim""|follows = "nixvim-stable"|g'
- run: nix build -L