From 9c7939373b8b971dab5d6e73ad2b9fdbc5c5f2ed Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Sat, 17 Dec 2022 06:47:27 +0000 Subject: [PATCH] docs: reason to failover to github - https://gitlab.com/gitlab-org/gitlab/-/issues/29257 --- src/build.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/build.js b/src/build.js index 0232c9f..1bd0e0d 100644 --- a/src/build.js +++ b/src/build.js @@ -1,5 +1,12 @@ 'use strict' +// Attempt to download GitLab job artifact and failover to GitHub if unsuccessful. +// In GitLab Pages, the latest job status will be marked as unknown/failed if the repo has newer commit. +// The link to download the latest job artifact will also be unavailable when that happens, +// unless manually queried through API. +// Instead of using the API, I find it easier to failover to GitHub. +// ref: https://gitlab.com/gitlab-org/gitlab/-/issues/29257 + const { stream: gotStream } = require('got') const got = require('got') const unzip = require('extract-zip')