Skip to content

Commit f33e234

Browse files
committed
test: adjust for tag workflow IDs being passed as strings
In 60acf5c (cascading-runs: pass workflow run ID as string, 2023-03-07), we started passing the IDs as strings because workflow dispatch inputs _always_ have to be strings. Let's adjust the tests accordingly, to give them a chance to pass again. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 961ebdb commit f33e234

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

__tests__/index.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ The \`git-artifacts-i686\` workflow run [was started](dispatched-workflow-git-ar
411411
ref: 'main',
412412
inputs: {
413413
architecture: 'i686',
414-
tag_git_workflow_run_id: 4322343196
414+
tag_git_workflow_run_id: "4322343196"
415415
}
416416
}
417417
])
@@ -477,12 +477,12 @@ The \`git-artifacts-i686\` workflow run [was started](dispatched-workflow-git-ar
477477
expect(dispatchedWorkflows[0].html_url).toEqual('dispatched-workflow-git-artifacts.yml')
478478
expect(dispatchedWorkflows[0].payload.inputs).toEqual({
479479
architecture: 'i686',
480-
tag_git_workflow_run_id: 341
480+
tag_git_workflow_run_id: "341"
481481
})
482482
expect(dispatchedWorkflows[1].html_url).toEqual('dispatched-workflow-git-artifacts.yml')
483483
expect(dispatchedWorkflows[1].payload.inputs).toEqual({
484484
architecture: 'x86_64',
485-
tag_git_workflow_run_id: 341
485+
tag_git_workflow_run_id: "341"
486486
})
487487
})
488488

0 commit comments

Comments
 (0)