diff options
author | Reinier van der Leer <pwuts@agpt.co> | 2024-03-01 11:23:14 +0100 |
---|---|---|
committer | Reinier van der Leer <pwuts@agpt.co> | 2024-03-01 11:23:14 +0100 |
commit | 3e40b35ef15ed7157655b48b3959cee91971ef9a (patch) | |
tree | 8ab5c3409d2e89321b48a0164277768b407dc4be | |
parent | fix(ci/arena): Make check for `pr.mergeable` more specific (diff) | |
download | Auto-GPT-3e40b35ef15ed7157655b48b3959cee91971ef9a.tar.gz Auto-GPT-3e40b35ef15ed7157655b48b3959cee91971ef9a.tar.bz2 Auto-GPT-3e40b35ef15ed7157655b48b3959cee91971ef9a.zip |
fix(ci/arena): Reverse check for `pr.mergeable`
-rw-r--r-- | .github/workflows/arena-intake.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/arena-intake.yml b/.github/workflows/arena-intake.yml index 0b5e12dfb..9221c79a0 100644 --- a/.github/workflows/arena-intake.yml +++ b/.github/workflows/arena-intake.yml @@ -76,7 +76,7 @@ jobs: const newArenaFileName = path.basename(newArenaFile.filename) console.log(`🗒️ Arena entry in PR: ${newArenaFile}`); - if (pr.mergeable) { + if (pr.mergeable != false) { const newArenaEntry = JSON.parse(fs.readFileSync(newArenaFile.filename)); const allArenaFiles = await (await glob.create('arena/*.json')).glob(); console.debug(newArenaEntry); @@ -104,7 +104,7 @@ jobs: close = true; } } - } else if (pr.mergeable == false) { + } else { console.log('⚠️ PR has conflicts'); issues.push( `__${newArenaFileName}__ conflicts with existing entry with the same name` |