mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-08 13:50:32 +00:00
tools: Update publish.sh
This commit is contained in:
@@ -144,8 +144,9 @@ tools+=(valgrind)
|
|||||||
|
|
||||||
for tool in "${tools[@]}"; do
|
for tool in "${tools[@]}"; do
|
||||||
git checkout -b "${tool}"
|
git checkout -b "${tool}"
|
||||||
sed -E "${in_place[@]}" "s/required: true/required: false/g" action.yml
|
sed -E "${in_place[@]}" action.yml \
|
||||||
sed -E "${in_place[@]}" "s/# default: #publish:tool/default: ${tool}/g" action.yml
|
-e "s/required: true/required: false/g" \
|
||||||
|
-e "s/# default: #publish:tool/default: ${tool}/g"
|
||||||
git add action.yml
|
git add action.yml
|
||||||
git commit -m "${tool}"
|
git commit -m "${tool}"
|
||||||
retry git push origin -f refs/heads/"${tool}"
|
retry git push origin -f refs/heads/"${tool}"
|
||||||
@@ -193,9 +194,11 @@ cp -- ./manifests/* "${schema_workspace}"
|
|||||||
# Detect changes, then commit and push if changes exist
|
# Detect changes, then commit and push if changes exist
|
||||||
if [[ "$(git status --porcelain=v1 | wc -l)" != "0" ]]; then
|
if [[ "$(git status --porcelain=v1 | wc -l)" != "0" ]]; then
|
||||||
git commit -m 'Update manifest schema'
|
git commit -m 'Update manifest schema'
|
||||||
git push origin HEAD
|
retry git push origin HEAD
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
|
|
||||||
rm -rf -- "${schema_workspace}"
|
rm -rf -- "${schema_workspace}"
|
||||||
git worktree prune
|
git worktree prune
|
||||||
|
# TODO: get branch in schema_workspace dir instead
|
||||||
|
git branch -D "${schema_branch}" "${schema_workspace##*/}"
|
||||||
|
|||||||
Reference in New Issue
Block a user