Skip to content

Commit

Permalink
Strip leading v in conan and docs version strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Quincunx271 committed Jan 4, 2021
1 parent 992f838 commit 107470e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/conan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ jobs:
import os
if '${{ github.event_name }}' == 'release':
print('::set-output name=CONAN_VERSION::' + os.environ['GITHUB_REF'].split('/')[-1])
release = os.environ['GITHUB_REF'].split('/')[-1]
if release.startswith('v'):
release = release[1:]
print('::set-output name=CONAN_VERSION::' + release)
print('::set-output name=CONAN_CHANNEL::stable')
else:
assert '${{ github.event_name }}' == 'push'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
if '${{ github.event_name }}' == 'release':
release = os.environ['GITHUB_REF'].split('/')[-1]
if release.startswith('v'):
release = release[1:]
print('::set-output name=DOCS_DIR::' + release)
print('::set-output name=COMMIT_MSG::Publish docs for release ' + release)
else:
Expand Down

0 comments on commit 107470e

Please sign in to comment.