mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
feta(ci-cd): Add check for CI:CD git ref tag
This commit is contained in:
parent
5675c3d582
commit
5795da36a8
11
.github/workflows/release-nightly.yaml
vendored
11
.github/workflows/release-nightly.yaml
vendored
@ -12,12 +12,21 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Check git version matches flake version
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if ! [ $(${{ github.ref }} | cut -d'v' -f 2) = $(grep '# CI:CD-VERSION$' flake.nix | cut -d'"' -f 2) ];
|
||||||
|
then
|
||||||
|
echo "Version mismatch between Git and flake"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Check version in code matches flake version
|
- name: Check version in code matches flake version
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if ! [ $(grep '// CI:CD-VERSION$' server/root-handler/handler.go | cut -d'"' -f 2) = $(grep '# CI:CD-VERSION$' flake.nix | cut -d'"' -f 2) ];
|
if ! [ $(grep '// CI:CD-VERSION$' server/root-handler/handler.go | cut -d'"' -f 2) = $(grep '# CI:CD-VERSION$' flake.nix | cut -d'"' -f 2) ];
|
||||||
then
|
then
|
||||||
echo "Version mismatch"
|
echo "Version mismatch between code and flake"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user