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 0756623 commit cd51d97
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:

jobs:
test:
Job_U:
runs-on: ubuntu-latest

steps:
Expand All @@ -27,8 +27,38 @@ jobs:
export DATAFUS_VERSION=$(curl https://api.github.com/repos/bot4dofus/Datafus/releases/latest | jq -r ".name")
echo The current Dofus version is $DOFUS_VERSION
echo The latest Datafus version is $DATAFUS_VERSION
echo "::set-env name=DOFUS_VERSION::$DOFUS_VERSION"
echo "::set-env name=DATAFUS_VERSION::$DATAFUS_VERSION"
- uses: actions/github-script@v6
with:
script: |
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
});
while (true) {
core.info('Waiting for workflow to cancel ...');
await delay(5000);
}
- name: U1 - Update Dofus Client
run: |
cytrus-v6 download --game dofus --select "DofusInvoker.swf,**/*.d2i,**/*.d2o" --output data/U/
ls data/U/
Job_A:
runs-on: ubuntu-latest
needs: [Job_U]

steps:
- name: Checkout repository
uses: actions/checkout@v3

0 comments on commit cd51d97

Please sign in to comment.