Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-24 12:07:53 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-24 12:07:53 +0300
commit52b219b6f40e49471c66765a95a550f6de256b6a (patch)
tree37102bf58bd19bb23ab99bf940763a0d5311965b /scripts/utils.sh
parent9933e246c88dfa3d62eb0bab258539711663b904 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/utils.sh')
-rw-r--r--scripts/utils.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/utils.sh b/scripts/utils.sh
index 66512798a11..40cf6716528 100644
--- a/scripts/utils.sh
+++ b/scripts/utils.sh
@@ -114,6 +114,8 @@ function yarn_install_script() {
retry yarn install --frozen-lockfile
+ retry yarn storybook:install --frozen-lockfile
+
section_end "yarn-install"
}
@@ -290,6 +292,13 @@ function fail_pipeline_early() {
fi
}
+function danger_as_local() {
+ # Force danger to skip CI source GitLab and fallback to "local only git repo".
+ unset GITLAB_CI
+ # We need to base SHA to help danger determine the base commit for this shallow clone.
+ bundle exec danger dry_run --fail-on-errors=true --verbose --base="${CI_MERGE_REQUEST_DIFF_BASE_SHA}" --head="${CI_MERGE_REQUEST_SOURCE_BRANCH_SHA:-$CI_COMMIT_SHA}" --dangerfile="${DANGER_DANGERFILE:-Dangerfile}"
+}
+
# We're inlining this function in `.gitlab/ci/package-and-test/main.gitlab-ci.yml` so make sure to reflect any changes there
function assets_image_tag() {
local cache_assets_hash_file="cached-assets-hash.txt"