Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/check-latest-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
run: |
version=$(curl -s https://api.github.com/repos/jumpserver/jumpserver/releases/latest | jq -r .tag_name)
echo "Current Version: ${version}"
if [ -z "${version}" ]; then
if [ -z "${version}" ] || [ "${version}" = "null" ] || ! echo "${version}" | grep -q '^v'; then
echo "Invalid or missing version (API error / rate limit?), aborting to avoid corrupting mkdocs.yml"
exit 1
fi
echo "version=${version}" >> $GITHUB_ENV
Expand All @@ -24,7 +25,7 @@ jobs:
- name: Update Version
if: env.update == 'true'
run: |
sed -i "s@tag: v.*@tag: ${{ env.version }}@" mkdocs.yml
sed -i "s@tag: .*@tag: ${{ env.version }}@" mkdocs.yml
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ markdown_extensions:

extra:
jumpserver:
tag: null
tag: v5.0.0
client_tag: 4.1.7
search:
separator: '[\s\-\.]+'
Expand Down
Loading