From 66b684f88eba6c755651b8c47dccad2c2d9ac3db Mon Sep 17 00:00:00 2001 From: Mak Date: Thu, 4 Aug 2022 20:07:34 +0300 Subject: [PATCH] Integrate auto-updating parachain template on developer-hub (#1479) (#1504) * Integrate auto-updating parachain template on developer-hub * Update .gitlab-ci.yml Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com> Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com> Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com> --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eab592d70b..4d70121703 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -332,6 +332,20 @@ publish-benchmarks-s3: after_script: - aws s3 ls s3://${BUCKET}/${PREFIX}/ --recursive --human-readable --summarize +# Ref: https://github.com/paritytech/opstooling/issues/111 +update-parachain-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-parachain-template" + --template-path "parachain-template" + --github-api-token "$GITHUB_TOKEN" + --polkadot-branch "$CI_COMMIT_REF_NAME" + #### stage: .post # This job cancels the whole pipeline if any of provided jobs fail.