Skip to content

Commit

Permalink
detect cancelled job in E2E trigger job
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed Sep 20, 2024
1 parent a62c4e6 commit b8d1d8e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/trigger-e2e-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ jobs:
});
const deployJob = jobs.data.jobs.find(job => job.name === 'deploy / seed-data / seed-data');
const cancelled = jobs.data.jobs.find(job => job.conclusion === 'cancelled');
if (cancelled) {
throw new Error('E2E workflow was cancelled');
}
if (deployJob && deployJob.status === 'completed') {
deployJobCompleted = true;
Expand Down

0 comments on commit b8d1d8e

Please sign in to comment.