Skip to content

Commit

Permalink
ci(workflows): fix conditional in build docs (#10530)
Browse files Browse the repository at this point in the history
ci: fix conditional
  • Loading branch information
moabu authored Dec 31, 2024
1 parent ed6985a commit c79a418
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,11 @@ jobs:
# github.event_name != 'workflow_dispatch'
id: set_versions
run: |
GITHUB_EVENT_RELEASE_TAG_NAME="${{ github.event.release.tag_name }}"
TAGS=$(gh release list -L 1000 -R ${{ github.repository }} | grep -o '^\v.*'| grep -v Draft | cut -f 1 | sed '/-/!{s/$/_/}' | sort -V | sed 's/_$//')
LATEST=$(echo "${TAGS}" | tail -1)
STABLE=$(echo "${TAGS}" | grep -v -- "nightly" | tail -1)
if [[ ${{ github.event.release.tag_name }} == 'nightly' ]]; then
if [[ "$GITHUB_EVENT_RELEASE_TAG_NAME" == 'nightly' ]]; then
LATEST='nightly'
fi
echo "Latest is $LATEST and Stable is $STABLE"
Expand Down

0 comments on commit c79a418

Please sign in to comment.