publish-github.sh: publish main and tags only (work-in-progress branches stay on Forgejo)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
eb923234af
commit
d670d63bcc
1 changed files with 5 additions and 0 deletions
|
|
@ -38,6 +38,11 @@ work="$(mktemp -d)"
|
|||
trap 'rm -rf "${work}"' EXIT
|
||||
git clone --quiet --bare --no-local "${root}" "${work}/repo.git"
|
||||
cd "${work}/repo.git"
|
||||
# Only main and the tags are published: other branches (work in progress) are dropped
|
||||
# from this copy before filtering.
|
||||
git for-each-ref --format='%(refname)' refs/heads | grep -vx 'refs/heads/main' | while read -r ref; do
|
||||
git update-ref -d "${ref}"
|
||||
done
|
||||
|
||||
quoted=""
|
||||
for p in "${internal[@]}"; do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue