Skip to content

Commit

Permalink
Debug tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shBLOCK committed May 7, 2024
1 parent d99d06f commit 786e0f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,18 @@ jobs:

- name: Fetch Latest Codegen Result
uses: actions/github-script@v7
debug: true
with:
# noinspection TypeScriptUnresolvedReference
script: |
let latest = null
for await (const runs of github.paginate.iterator(
github.rest.actions.listWorkflowRuns({
github.rest.actions.listWorkflowRuns,
{
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: "codegen.yml"
})
}
)) {
for (const run of runs.data.workflow_runs) {
latest = (latest != null && run.run_number > latest.run_number)
Expand Down

0 comments on commit 786e0f4

Please sign in to comment.