Skip to content

Commit

Permalink
Update misc-sync-templates.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rzadp authored Jul 15, 2024
1 parent 0dd78b4 commit ff0bbe7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/misc-sync-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ jobs:
# 2. Yanking the template out of the monorepo workspace.

- name: Use psvm to replace git references with released creates.
run: find . -type f -name 'Cargo.toml' -exec psvm -o -v ${{ github.event.inputs.crate_release_version }} -p {} \;
working-directory: polkadot-sdk/templates/${{ matrix.template }}/
- name: Create a new workspace Cargo.toml
run: |
cat << EOF > Cargo.toml
Expand Down Expand Up @@ -133,13 +136,6 @@ jobs:
# And copy the dependency from the monorepo.
toml get ../polkadot-sdk/Cargo.toml 'workspace.dependencies' --output-toml | grep "^${missing_dep} = " >> Cargo.toml
done;
# Same for dev-dependencies..
echo -e "\n[workspace.dev-dependencies]" >> Cargo.toml
while cargo tree --depth 1 --prefix none --no-dedupe 2>&1 | grep 'was not found in `workspace.dev-dependencies`'; do
missing_dep=$(cargo tree --depth 1 --prefix none --no-dedupe 2>&1 | grep 'was not found in `workspace.dev-dependencies`' | sed -E 's/(.*)`dependency.(.*)` was not found in `workspace.dev-dependencies`/\2/')
toml get ../polkadot-sdk/Cargo.toml 'workspace.dev-dependencies' --output-toml | grep "^${missing_dep} = " >> Cargo.toml
done;
working-directory: "${{ env.template-path }}"

# 3. Verify the build. Push the changes or create a PR.
Expand Down

0 comments on commit ff0bbe7

Please sign in to comment.