Skip to content

Commit

Permalink
Hotfix: move outputs to the bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
beagleknight committed Jan 31, 2025
1 parent 091b3e2 commit 81771b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/__snapshots__/workflow.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ jobs:
job1:
runs-on: ubuntu-22.04
timeout-minutes: 15
outputs:
random-number: \${{ steps.random-number.outputs.random-number }}
steps:
- id: random-number
run: echo \\"::set-output name=random-number::$RANDOM\\"
outputs:
random-number: \${{ steps.random-number.outputs.random-number }}
"
`;

Expand Down
3 changes: 2 additions & 1 deletion src/workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ export class Workflow<
},
}
: undefined,
outputs,
};

if ("uses" in jobOptions) {
Expand All @@ -224,6 +223,7 @@ export class Workflow<
uses: jobOptions.uses,
with: jobOptions.with,
secrets: jobOptions.secrets,
outputs,
},
];
}
Expand Down Expand Up @@ -255,6 +255,7 @@ export class Workflow<
};
}),
),
outputs,
},
];
}),
Expand Down

0 comments on commit 81771b5

Please sign in to comment.