diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 150c42e4..d43cdd57 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: id: release_tag env: GITHUB_REF: ${{ github.ref }} - run: echo ::set-output name=tag::$(echo ${GITHUB_REF:11}) + run: echo ::set-env name=GITHUB_TAG::$(echo ${GITHUB_REF:11}) - 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"