From fb21d151e19d2078327057d4977b327383695856 Mon Sep 17 00:00:00 2001 From: Kevin Jahaziel Leon Morales Date: Fri, 30 Aug 2024 19:35:10 -0600 Subject: [PATCH] feat: Dinamic version --- .github/workflows/build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6d794b3..70aeb71 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,6 +24,17 @@ jobs: - name: Add version run: git describe --tags | sed 's/-[^-]*$//' > version.txt + + - name: Set env + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + - name: Display version + run: | + echo $RELEASE_VERSION + + - name: Rename OTA Version sdkconfig + run: | + sed -i "s/CONFIG_PROJECT_VERSION=\".*\"/CONFIG_PROJECT_VERSION=\"$RELEASE_VERSION\"/g" ./firmware/sdkconfig.ota + sed -i "s/CONFIG_PROJECT_VERSION=\".*\"/CONFIG_PROJECT_VERSION=\"$RELEASE_VERSION\"/g" ./firmware/sdkconfig.noota - name: esp-idf build NO OTA uses: espressif/esp-idf-ci-action@v1