diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml index 9d02665f..d06681d8 100644 --- a/.github/workflows/update-docs.yml +++ b/.github/workflows/update-docs.yml @@ -34,7 +34,7 @@ jobs: # Strip autogenerated wikileaks references because # they are not an appropriate default user experience. - (cd foam-template/docs; sed -i '/\[\/\/begin\]/,/\[\/\/end\]/d' $(find . -type f -name \*.md)) + (cd foam-template/docs; find . -type f -name '*.md' -exec sed -i '/\[\/\/begin\]/,/\[\/\/end\]/d' {} +) # Set the commit message format echo "message=Docs sync @ $(cd foam; git log --pretty='format:%h %s')" >> $GITHUB_OUTPUT