fix(ci-cd): Fix ci:cd

This commit is contained in:
Myzel394 2024-10-16 21:50:47 +02:00
parent 5795da36a8
commit 684e21bf74
No known key found for this signature in database
GPG Key ID: ED20A1D1D423AF3F

View File

@ -5,7 +5,7 @@ on:
types: [ published ] types: [ published ]
jobs: jobs:
build-nightly: build-release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -15,7 +15,7 @@ jobs:
- name: Check git version matches flake version - name: Check git version matches flake version
shell: bash shell: bash
run: | run: |
if ! [ $(${{ github.ref }} | cut -d'v' -f 2) = $(grep '# CI:CD-VERSION$' flake.nix | cut -d'"' -f 2) ]; if ! [ $(echo '${{ github.ref }}' | cut -d'v' -f 2) = $(grep '# CI:CD-VERSION$' flake.nix | cut -d'"' -f 2) ];
then then
echo "Version mismatch between Git and flake" echo "Version mismatch between Git and flake"
exit 1 exit 1