Skip to content
Snippets Groups Projects
Verified Commit e1312a3d authored by Dave Long's avatar Dave Long
Browse files

Issue #3418207 followup by longwave, fjgarlin: Spell-checking job fails with...

Issue #3418207 followup by longwave, fjgarlin: Spell-checking job fails with "couldn't find remote ref refs/heads/11.x" when 11.x branch does not exist in fork
parent 47475efa
No related branches found
No related tags found
No related merge requests found
...@@ -411,4 +411,9 @@ default: ...@@ -411,4 +411,9 @@ default:
variables: variables:
KUBERNETES_CPU_REQUEST: "2" KUBERNETES_CPU_REQUEST: "2"
script: script:
- git diff $CI_MERGE_REQUEST_TARGET_BRANCH_SHA --name-only | sed "s_^_../_" | yarn --cwd=./core run -s spellcheck:core --no-must-find-files --file-list stdin - if [ -n "$CI_MERGE_REQUEST_TARGET_BRANCH_SHA" ]; then
echo "HEAD is $(git rev-parse HEAD). \$CI_MERGE_REQUEST_TARGET_BRANCH_SHA is ${CI_MERGE_REQUEST_TARGET_BRANCH_SHA}";
else
echo "HEAD is $(git rev-parse HEAD). \$CI_MERGE_REQUEST_DIFF_BASE_SHA is ${CI_MERGE_REQUEST_DIFF_BASE_SHA}";
fi;
- git diff ${CI_MERGE_REQUEST_TARGET_BRANCH_SHA:-$CI_MERGE_REQUEST_DIFF_BASE_SHA} --name-only | sed "s_^_../_" | yarn --cwd=./core run -s spellcheck:core --no-must-find-files --file-list stdin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment