Skip to content

Commit

Permalink
tools: Update publish.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Feb 16, 2025
1 parent f455764 commit 3fc69e7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tools/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ tools+=(valgrind)

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

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

0 comments on commit 3fc69e7

Please sign in to comment.