Merge pull request #486 from aluzzardi/docs-fix

docs: fix versioning
This commit is contained in:
Andrea Luzzardi 2021-05-21 14:08:26 -07:00 committed by GitHub
commit 97fe3ad7d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,9 @@ jobs:
steps: steps:
- name: Set Version - name: Set Version
id: vars 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 # fetch-depth: '0' enables listing all tags for version selector
- uses: actions/checkout@v2 - uses: actions/checkout@v2