Skip to content

Commit 458d25f

Browse files
authored
Merge pull request #2084 from dolthub/db/fix-workflow
[no-release-notes]: /.github/workflows/bump-dependency.yaml: dont close failing bumps
2 parents 17414a1 + 680487f commit 458d25f

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/bump-dependency.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,27 @@ jobs:
173173
174174
if (pull.keepAlive) process.exit(0);
175175
176+
const checkSuiteRes = await github.rest.checks.listSuitesForRef({
177+
owner,
178+
repo,
179+
ref: pull.headRef,
180+
});
181+
182+
if (checkSuiteRes.data) {
183+
for (const suite of checkSuiteRes.data.check_suites) {
184+
console.log("suite id:", suite.id);
185+
console.log("suite app slug:", suite.app.slug);
186+
console.log("suite status:", suite.status);
187+
console.log("suite conclusion:", suite.conclusion);
188+
if (suite.app.slug === "github-actions") {
189+
if (suite.status !== "completed" || suite.conclusion !== "success") {
190+
console.log(`Leaving pr open due to status:${suite.status} conclusion${suite.conclusion}`);
191+
process.exit(0);
192+
}
193+
}
194+
}
195+
}
196+
176197
console.log(`Closing open pr ${pull.number}`);
177198
await github.rest.issues.createComment({
178199
issue_number: pull.number,

0 commit comments

Comments
 (0)