Skip to content

Commit

Permalink
CI: fixed flows building
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
  • Loading branch information
bigcat88 committed Jun 21, 2024
1 parent ba92632 commit 8ac3eae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ jobs:
set -e
mkdir flows_publish
for branch in $(git branch -r | grep -E 'origin/version-'); do
git checkout --track "$branch"
local_branch=$(echo "$branch" | sed -E 's/origin\///')
if git show-ref --verify --quiet "refs/heads/$local_branch"; then
git checkout "$local_branch"
else
git checkout --track "$branch"
fi
version=$(echo "$branch" | sed -E 's/origin\/version-([0-9\.]+)/\1/')
zip -r "flows_publish/flows-$version.zip" flows
done
Expand Down

0 comments on commit 8ac3eae

Please sign in to comment.