mirror of
https://github.com/tenrok/vue-select.git
synced 2026-05-17 02:29:37 +03:00
build(1733): parse deploy preview env int (#1734)
This commit is contained in:
@@ -31,11 +31,16 @@ async function getSponsors() {
|
||||
* Deploy previews don't have access to secrets.
|
||||
* Return early since we don't have a token.
|
||||
*/
|
||||
if (process.env['DEPLOY_PREVIEW']) {
|
||||
if (
|
||||
process.env['DEPLOY_PREVIEW'] &&
|
||||
parseInt(process.env['DEPLOY_PREVIEW'])
|
||||
) {
|
||||
console.log('Skipping sponsors because this is a deploy preview.')
|
||||
return []
|
||||
}
|
||||
|
||||
console.log('Fetching sponsors...')
|
||||
|
||||
const query = `
|
||||
{
|
||||
user(login: "sagalbot") {
|
||||
|
||||
Reference in New Issue
Block a user