Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LucBerge authored Apr 24, 2024
1 parent 30fc419 commit 25b01e0
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,21 @@ jobs:
console.log(process.env.DOFUS_VERSION);
console.log(process.env.DATAFUS_VERSION);
console.log(process.env.DOFUS_VERSION == process.env.DATAFUS_VERSION);
const delay = ms => new Promise(res => setTimeout(res, ms));
github.rest.actions.cancelWorkflowRun({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.runId
});
if(process.env.DOFUS_VERSION == process.env.DATAFUS_VERSION) {
console.log("Dofus and Datafus versions are the same. Stopping the workflow.)
const delay = ms => new Promise(res => setTimeout(res, ms));
while (true) {
core.info('Waiting for workflow to cancel ...');
await delay(5000);
github.rest.actions.cancelWorkflowRun({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.runId
});
while (true) {
core.info('Waiting for workflow to cancel ...');
await delay(5000);
}
}
- name: U1 - Update Dofus Client
Expand Down

0 comments on commit 25b01e0

Please sign in to comment.