You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
find $folder -name "$name" -type f -print -exec sed -i "s/${target}/${replacement}/g" {} +
if [ $? -ne 0 ]; then
echo "!!! β Aborted! update-all-generic failed for $owner/$repo:"
return 1
fi
new code(function update-all-generic):
find "$folder" -name "$name" -type f -print0 | while IFS= read -r -d '' file; do
echo "Processing file: $file"
if ! sed "s/${target}/${replacement}/g" "$file" > "$file.tmp" && mv "$file.tmp" "$file"; then
echo "!!! β Sed failed for $file"
return 1
fi
done
It looks like there was a problem in how sed handles files with names that contain - (ci-workflow.xml, release-workflow)
auto-check
---> π OWNER: snivilised
---> π§° REPO: traverse
π― ---> title: π₯ update-workflow-names
β ---> file pattern: *.yml
β ---> folder: .github/workflows
β ---> target: name: astrolib
β ---> replacement: name: Traverse
sed: 1: ".github/workflows/relea ...": invalid command code .
sed: 1: ".github/workflows/ci-wo ...": invalid command code .
sed: 1: ".github/workflows/auto- ...": invalid command code .
!!! β Aborted! update-all-generic failed for snivilised/traverse:
The text was updated successfully, but these errors were encountered: