sync-templates: enable syncing from stable release patches #7227
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
We're unable to sync templates repos with what's in polkadot-sdk/templates for stable2412 because the tag which references the release (
polkadot-stable2412
) is missing the Plan.toml file, which is needed by PSVM, ran when syncing, to update the templates dependencies versions in Cargo.tomls. This PR adds a workflowpatch
input, to enable the workflow to use PSVM with a tag corresponding to a patch stable release (e.g.polkadot-stable2412-1
), which will contain thePlan.toml
file.Integration
This enables the templates repos update with the contents of latest stable2412 release, in terms of polkadot-sdk/templates, which is relevant for getting-started docs.
Review Notes
This PR adds a
patch
input for themisc-sync-templates.yml
workflow, which if set will be used withpsvm
accordingly to update templates repos' dependencies versions based on upcomming patch stable2412-1, which contains thePlan.toml
. The workflow will be ran manually after stable2412-1 is out and this work is tracked under #6329 .