mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 13:38:37 +00:00
Privacy improvements for CI
This commit is contained in:
+2
-2
@@ -75,7 +75,7 @@ fs.readFile('input.csv', 'utf8', async (err, data) => {
|
||||
await createZeroTrustList(listName, properList, (index+1), listsToCreate);
|
||||
await sleep(350); // Sleep for 350ms between list additions
|
||||
} catch (error) {
|
||||
console.error(`Error creating list "${listName}":`, error.response.data);
|
||||
console.error(`Error creating list ` + process.env.CI ? "(redacted on CI)" : `"${listName}": ${error.response.data}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -119,7 +119,7 @@ async function createZeroTrustList(name, items, currentItem, totalItems) {
|
||||
);
|
||||
|
||||
const listId = response.data.result.id;
|
||||
console.log(`Created Zero Trust list "${name}" with ID ${listId} - ${totalItems - currentItem} left`);
|
||||
console.log(`Created Zero Trust list ` + process.env.CI ? "(redacted on CI)" : `"${name}" with ID ${listId} - ${totalItems - currentItem} left`);
|
||||
}
|
||||
|
||||
function percentage(percent, total) {
|
||||
|
||||
Reference in New Issue
Block a user