From cf80ac64142b5ad29be85df129d6c2e3cd6775c9 Mon Sep 17 00:00:00 2001 From: Egor_P Date: Wed, 21 Sep 2022 16:35:13 +0200 Subject: [PATCH] add current time in milis to the branch name (#1658) --- .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}