docs: reason to failover to github

- https://gitlab.com/gitlab-org/gitlab/-/issues/29257
This commit is contained in:
MDLeom 2022-12-17 06:47:27 +00:00
parent acabb9ce2a
commit 9c7939373b
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 7 additions and 0 deletions

View File

@ -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')