Log the start of each run with its parameters

But do not show secrets.
main
Jacobo de Vera 2024-07-20 01:11:41 +01:00
parent 11f95daaf8
commit 921713518d
No known key found for this signature in database
GPG Key ID: A0978FF8800D5BD7
1 changed files with 10 additions and 0 deletions

View File

@ -130,6 +130,16 @@ async function main() {
const dryRun = ['1', 'true'].includes(process.env.DRY_RUN);
console.log("Starting with the following configuration:")
console.log(` - GITHUB_USERNAME: ${githubUsername}`);
console.log(` - GITHUB_TOKEN: ${githubToken ? '****' : ''}`);
console.log(` - GITEA_URL: ${giteaUrl}`);
console.log(` - GITEA_TOKEN: ${giteaToken ? '****' : ''}`);
console.log(` - MIRROR_PRIVATE_REPOSITORIES: ${mirrorPrivateRepositories}`);
console.log(` - SKIP_FORKS: ${!mirrorForks}`);
console.log(` - DRY_RUN: ${dryRun}`);
const githubRepositories = await getGithubRepositories(githubUsername, githubToken, mirrorPrivateRepositories, mirrorForks);
console.log(`Found ${githubRepositories.length} repositories on github`);