From 87a2ec41c6ec40a18cdbeb0fb21970fc7480765c Mon Sep 17 00:00:00 2001 From: Aditya Garg <85610623+AdityaGarg8@users.noreply.github.com> Date: Sat, 29 Jun 2024 13:25:08 +0530 Subject: [PATCH] Fix variables in json --- .github/workflows/CI.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index fbb8c82..e28d518 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -198,6 +198,16 @@ jobs: - name: 'Checkout Repo' uses: actions/checkout@v4 + - name: Generate Variables + run: | + VER=$(egrep ^KERNEL_VERSION build.sh|cut -d= -f2) + MINTVER=$(egrep ^KERNEL_VERSION build.sh|cut -d= -f2) + REL=$(grep "PKGREL=\d*" build.sh | cut -d = -f2) + echo Version is $VER + echo "kver=${VER}" >> $GITHUB_ENV + echo "mintver=${MINTVER}" >> $GITHUB_ENV + echo "isotag=${VER}-${REL}" >> $GITHUB_ENV + - name: Update the json if: github.ref == 'refs/heads/main' id: publish