diff options
author | Harel Ben-Attia <harelba@gmail.com> | 2022-01-22 15:51:23 +0200 |
---|---|---|
committer | Harel Ben-Attia <harelba@gmail.com> | 2022-01-22 15:51:23 +0200 |
commit | 4b338345b1bc2ecb99bb5eb9ad0673ba54a33846 (patch) | |
tree | 62b93efd55fb01b47443a574ed46030ff2490fc2 | |
parent | d60bfff9b120a76cd8e244d86029a3ca6c2f4003 (diff) |
wip
-rw-r--r-- | .github/workflows/build-and-package.yaml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/build-and-package.yaml b/.github/workflows/build-and-package.yaml index d6ad906..72ff633 100644 --- a/.github/workflows/build-and-package.yaml +++ b/.github/workflows/build-and-package.yaml @@ -23,10 +23,12 @@ jobs: run: | set -e -x + echo "github event ref is ${{ github.event.ref }}" + if [ "x${{ startsWith(github.event.ref, 'refs/tags/v') }}" == "xtrue" ] then echo "Trigger was a version tag - ${{ github.event.ref }}" - echo ::set-output name=q_version::${GITHUB_REF#refs/*/v} + echo ::set-output name=q_version::${GITHUB_REF#refs/tags/v} else # For testing version propagation inside the PR echo "Either branch of a non-version tag - setting version to 0.0.0" |