Skip to content

Commit 7b56b6f

Browse files
committed
fix: handle missing steps
This is no longer required, now that one can include other workflows.
1 parent b36c63a commit 7b56b6f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/github-actions/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ internals.parseActionsSetupNode = function * (workflow, file) {
1212

1313
for (const job of Object.values(workflow.jobs)) {
1414

15+
if (!job.steps) {
16+
continue;
17+
}
18+
1519
const nodeSteps = job.steps.filter(({ uses }) => uses && uses.startsWith('actions/setup-node'));
1620
for (const step of nodeSteps) {
1721
const nodeVersion = step.with && step.with['node-version'];
@@ -82,6 +86,10 @@ internals.parseLjharbActions = function * (workflow, file) {
8286

8387
for (const job of Object.values(workflow.jobs)) {
8488

89+
if (!job.steps) {
90+
continue;
91+
}
92+
8593
const nodeSteps = job.steps.filter(({ uses }) => {
8694

8795
if (!uses) {

0 commit comments

Comments
 (0)