Skip to content

Commit 3fc69e7

Browse files
committed
tools: Update publish.sh
1 parent f455764 commit 3fc69e7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tools/publish.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ tools+=(valgrind)
144144

145145
for tool in "${tools[@]}"; do
146146
git checkout -b "${tool}"
147-
sed -E "${in_place[@]}" "s/required: true/required: false/g" action.yml
148-
sed -E "${in_place[@]}" "s/# default: #publish:tool/default: ${tool}/g" action.yml
147+
sed -E "${in_place[@]}" action.yml \
148+
-e "s/required: true/required: false/g" \
149+
-e "s/# default: #publish:tool/default: ${tool}/g"
149150
git add action.yml
150151
git commit -m "${tool}"
151152
retry git push origin -f refs/heads/"${tool}"
@@ -193,9 +194,11 @@ cp -- ./manifests/* "${schema_workspace}"
193194
# Detect changes, then commit and push if changes exist
194195
if [[ "$(git status --porcelain=v1 | wc -l)" != "0" ]]; then
195196
git commit -m 'Update manifest schema'
196-
git push origin HEAD
197+
retry git push origin HEAD
197198
fi
198199
)
199200

200201
rm -rf -- "${schema_workspace}"
201202
git worktree prune
203+
# TODO: get branch in schema_workspace dir instead
204+
git branch -D "${schema_branch}" "${schema_workspace##*/}"

0 commit comments

Comments
 (0)