Integrate automatic update of substrate-node-template (#11931)

* Integrate automatic update of substrate-node-template

* Update scripts/ci/gitlab/pipeline/publish.yml

Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com>

Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com>
This commit is contained in:
Mak
2022-07-29 15:16:30 +03:00
committed by GitHub
parent 3bb68baa87
commit 135c584358
@@ -147,3 +147,17 @@ publish-draft-release:
script:
- ./scripts/ci/gitlab/publish_draft_release.sh
allow_failure: true
# Ref: https://github.com/paritytech/opstooling/issues/111
update-node-template:
stage: publish
extends: .kubernetes-env
rules:
- if: $CI_COMMIT_REF_NAME =~ /^polkadot-v[0-9]+\.[0-9]+.*$/ # i.e. polkadot-v1.0.99, polkadot-v2.1rc1
script:
- git clone --depth=1 --branch="$PIPELINE_SCRIPTS_TAG" https://github.com/paritytech/pipeline-scripts
- ./pipeline-scripts/update_substrate_template.sh
--repo-name "substrate-node-template"
--template-path "bin/node-template"
--github-api-token "$GITHUB_TOKEN"
--polkadot-branch "$CI_COMMIT_REF_NAME"