From 90a3b2126aebbf3fa3e0808ad62b3ccf91f35c7b Mon Sep 17 00:00:00 2001 From: Squirrel Date: Tue, 27 Sep 2022 16:53:17 +0100 Subject: [PATCH] add current time in milis to the branch name (#1658) (#1693) Co-authored-by: Egor_P --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 17544826bca..00c414693a4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -407,7 +407,8 @@ benchmarks-assets: - ./scripts/benchmarks-ci.sh assets statemine ./artifacts - ./scripts/benchmarks-ci.sh assets statemint ./artifacts - ./scripts/benchmarks-ci.sh assets westmint ./artifacts - - export BRANCHNAME="weights-statemint-${CI_COMMIT_BRANCH}" + - export CURRENT_TIME=$(date '+%s') + - export BRANCHNAME="weights-statemint-${CI_COMMIT_BRANCH}-${CURRENT_TIME}" - *git-commit-push # create PR to release-parachains-v* branch - curl -u ${GITHUB_USER}:${GITHUB_TOKEN} @@ -427,7 +428,8 @@ benchmarks-collectives: script: - ./scripts/benchmarks-ci.sh collectives collectives-polkadot ./artifacts - git status - - export BRANCHNAME="weights-collectives-${CI_COMMIT_BRANCH}" + - export CURRENT_TIME=$(date '+%s') + - export BRANCHNAME="weights-collectives-${CI_COMMIT_BRANCH}-${CURRENT_TIME}" - *git-commit-push # create PR - curl -u ${GITHUB_USER}:${GITHUB_TOKEN}