Skip to content

Commit

Permalink
delete lagacy gh-pages branches
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Apr 26, 2024
1 parent 1429f43 commit 1efaa99
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/on commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ jobs:
git config --global user.email "[email protected]"
git config --global --add url.https://github.com/.insteadOf "[email protected]:"
for branch in $(git branch -r | grep '^origin/gh-pages/'); do
branch_name=$(echo $branch | sed 's#origin/gh-pages/##')
if ! git branch -r | grep -q "origin/$branch_name"; then
echo "Deleting legacy remote branch $branch"
git push origin --delete $branch
fi
done
branch_name="gh-pages/$(git rev-parse --abbrev-ref HEAD)"
git checkout --orphan "$branch_name"
mv ".git" "Packing/Reference/0Release/"
Expand Down

0 comments on commit 1efaa99

Please sign in to comment.