Skip to content

Commit

Permalink
Add condition for determinate ds-ver (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
IskandarKurbonov authored Oct 4, 2023
1 parent 4518a5b commit e4d8eb9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci-docs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ jobs:
id: get-version
shell: bash
run: |
VERSION=$(curl -s -L -H "Accept: application/vnd.github+json" https://api.github.com/repos/ONLYOFFICE/document-server-package/branches | jq -r '.[] | .name | select(.|test("hotfix/*") or test("release/*"))' | awk -F '/v' '{print $2}')
if curl -s -L -H "Accept: application/vnd.github+json" https://api.github.com/repos/ONLYOFFICE/document-server-package/branches | jq -r '.[].name' | grep -qE '^release/'; then
VERSION=$(curl -s -L -H "Accept: application/vnd.github+json" https://api.github.com/repos/ONLYOFFICE/document-server-package/branches | jq -r '.[] | select(.name|test("^release/")) | .name' | awk -F '/v' '{print $2}')
else
VERSION=$(curl -s -L -H "Accept: application/vnd.github+json" https://api.github.com/repos/ONLYOFFICE/document-server-package/branches | jq -r '.[] | select(.name|test("^hotfix/")) | .name' | awk -F '/v' '{print $2}')
fi
echo "ds-ver=${VERSION:-99.99.99}" >> "$GITHUB_OUTPUT"
vagrant-up:
Expand Down

0 comments on commit e4d8eb9

Please sign in to comment.