aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorGravatar Reinier van der Leer <pwuts@agpt.co> 2024-03-01 11:27:26 +0100
committerGravatar Reinier van der Leer <pwuts@agpt.co> 2024-03-01 11:27:26 +0100
commitd1b06f0be3637cfbbc7881203a76baa1ae84ee86 (patch)
treee765be0fca4b3c6cecf97e089d165cd7cd56c861 /.github
parentfix(ci/arena): Reverse check for `pr.mergeable` (diff)
downloadAuto-GPT-d1b06f0be3637cfbbc7881203a76baa1ae84ee86.tar.gz
Auto-GPT-d1b06f0be3637cfbbc7881203a76baa1ae84ee86.tar.bz2
Auto-GPT-d1b06f0be3637cfbbc7881203a76baa1ae84ee86.zip
fix(ci/arena): Improve output format
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/arena-intake.yml11
1 files changed, 6 insertions, 5 deletions
diff --git a/.github/workflows/arena-intake.yml b/.github/workflows/arena-intake.yml
index 9221c79a0..577231bc5 100644
--- a/.github/workflows/arena-intake.yml
+++ b/.github/workflows/arena-intake.yml
@@ -83,22 +83,23 @@ jobs:
console.log(`➡️ Checking ${newArenaFileName} against existing entries...`);
for (const file of allArenaFiles) {
+ const existingEntryName = path.basename(file);
if (
- path.basename(file) === newArenaFileName
+ existingEntryName === newArenaFileName
&& newArenaFile.status != 'added'
) {
flagForManualCheck = true;
continue;
}
- console.debug(`Checking against ${file}...`);
+ console.debug(`Checking against ${existingEntryName}...`);
const arenaEntry = JSON.parse(fs.readFileSync(file));
if (arenaEntry.github_repo_url === newArenaEntry.github_repo_url) {
- console.log('⚠️ Duplicate detected: ${file}');
+ console.log('⚠️ Duplicate detected: ${existingEntryName}');
issues.push(
- `The github_repo_url specified in __${newArenaFileName}__ `
- + `already exists in __${file}__. `
+ `The \`github_repo_url\` specified in __${newArenaFileName}__ `
+ + `already exists in __${existingEntryName}__. `
+ `This PR will be closed as duplicate.`
)
close = true;