diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 150c42e4..bdd1034b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,11 +14,16 @@ jobs: steps: - name: Check out code from repo uses: actions/checkout@v1 - - name: Get release version from tag + - name: Get release version for filenames id: release_tag env: GITHUB_REF: ${{ github.ref }} run: echo ::set-output name=tag::$(echo ${GITHUB_REF:11}) + - name: Get release version for code + id: release_tag + env: + GITHUB_REF: ${{ github.ref }} + run: echo ::set-env name=GITHUB_TAG::$(echo ${GITHUB_REF##*/}) - name: Cache Python dependencies uses: actions/cache@v1 with: diff --git a/scripts/addversion.py b/scripts/addversion.py index 7453a4a1..5d6e9952 100644 --- a/scripts/addversion.py +++ b/scripts/addversion.py @@ -1,7 +1,7 @@ import os FILENAME_VERSION_H = 'src/version.h' -version = os.environ.get('GITHUB_REF') +version = os.environ.get('GITHUB_TAG') if version == None: version = "SNAPSHOT" diff --git a/src/AmsToMqttBridge.ino b/src/AmsToMqttBridge.ino index a79cb589..1712c53f 100644 --- a/src/AmsToMqttBridge.ino +++ b/src/AmsToMqttBridge.ino @@ -17,6 +17,7 @@ */ #include "AmsToMqttBridge.h" +#define ARDUINOJSON_POSITIVE_EXPONENTIATION_THRESHOLD 1e9 #include #include #include