From c936f605d6a58ba05e82a20cb27a0ccd436ddf50 Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Wed, 25 Mar 2020 20:21:39 +0100 Subject: [PATCH] Fixes #45 --- .github/workflows/release.yml | 2 +- scripts/addversion.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"