Skip to content

Commit

Permalink
all in one run fix2
Browse files Browse the repository at this point in the history
  • Loading branch information
racicLuka committed Apr 24, 2024
1 parent fcbc531 commit 365205a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/sync-weblate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
done <<< "$output"
echo "$commits"
git fetch --prune --tags
output=$(git branch -r | grep -v "origin/main" | cut -d'/' -f2 | xargs)
branches_output=$(git branch -r | grep -v "origin/main" | cut -d'/' -f2 | xargs)
echo "new output $branches_output"
declare -a OTHER_BRANCHES=()
while IFS= read -r line; do
OTHER_BRANCHES+=("$line")
done <<< "$output"
echo "these are the other branches $OTHER_BRANCHES"
done <<< "$branches_output"
MISSING_COMMITS=()
MISSING_BRANCHES=()
for BRANCH in $OTHER_BRANCHES; do
Expand All @@ -45,9 +45,6 @@ jobs:
fi
done
done
echo "$MISSING_COMMITS"
echo "$MISSING_BRANCHES"
echo "these are the missing commits $MISSING_COMMITS"
for ((i=0; i<=${#MISSING_COMMITS[@]}; ++i)); do
git checkout ${MISSING_BRANCHES[$i]}
git cherry-pick ${MISSING_COMMITS[$i]}
Expand Down

0 comments on commit 365205a

Please sign in to comment.