Skip to content

Commit

Permalink
feat: Dinamic version
Browse files Browse the repository at this point in the history
  • Loading branch information
JahazielLem committed Aug 31, 2024
1 parent bc05dc0 commit fb21d15
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb21d15

Please sign in to comment.