docs: fix versioning
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
e9246492ab
commit
bd47e36107
4
.github/workflows/docs.yml
vendored
4
.github/workflows/docs.yml
vendored
@ -23,7 +23,9 @@ jobs:
|
||||
steps:
|
||||
- name: Set Version
|
||||
id: vars
|
||||
run: echo ::set-output name=tag::${${GITHUB_REF#refs/*/}//main/devel}
|
||||
run: |
|
||||
tag=${GITHUB_REF#refs/*/}
|
||||
[ "$tag" = "main" ] && echo ::set-output name=tag::devel || echo ::set-output name=tag::$tag
|
||||
|
||||
# fetch-depth: '0' enables listing all tags for version selector
|
||||
- uses: actions/checkout@v2
|
||||
|
Reference in New Issue
Block a user