diff --git a/.github/workflows/sync-templates.yml b/.github/workflows/sync-templates.yml index b7912610f2dbe..559de812002c0 100644 --- a/.github/workflows/sync-templates.yml +++ b/.github/workflows/sync-templates.yml @@ -118,7 +118,7 @@ jobs: cp -r polkadot-sdk/templates/${{ matrix.template }}/* "${{ env.template-path }}/" - name: Copy over required workspace dependencies run: | - echo "[workspace.dependencies]" >> Cargo.toml + echo "\n[workspace.dependencies]" >> Cargo.toml set +e while cargo tree --depth 1 --prefix none --no-dedupe 2>&1 | grep 'was not found in `workspace.dependencies`'; do missing_dep=$(cargo tree --depth 1 --prefix none --no-dedupe 2>&1 | grep 'was not found in `workspace.dependencies`' | sed -E 's/(.*)`dependency.(.*)` was not found in `workspace.dependencies`/\2/')