From 997cc054d4b7a6148ad36a0bc1b28c4054afc117 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Wed, 1 May 2024 21:27:16 +0200 Subject: [PATCH] Fix release action to use major.minor instead of vMajor.minor.patch --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d5a4025d..b451c39b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,11 @@ jobs: uses: actions/checkout@v4 - name: Set correct versions - run: sed "s/edge/${{ github.ref_name }}/" -i docker-compose.yml + run: | + VERSION=${{ github.ref_name }} + VERSION=${VERSION:1} # Remove v prefix + VERSION=${VERSION%.*} # Remove minor version + sed "s/edge/$VERSION/" -i docker-compose.yml - uses: actions/upload-artifact@v4 with: