Skip to content

Commit

Permalink
[eas-build-job] Add properties to WorkflowInterpolationContext (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjchmiela authored Dec 12, 2024
1 parent 8329af7 commit 1910550
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/eas-build-job/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@ export interface BuildPhaseStats {
}

export const StaticWorkflowInterpolationContextZ = z.object({
after: z.record(
z.string(),
z.object({
status: z.string(),
outputs: z.record(z.string(), z.string().nullable()),
})
),
needs: z.record(
z.string(),
z.object({
Expand All @@ -179,6 +186,8 @@ export const StaticWorkflowInterpolationContextZ = z.object({
event_name: z.enum(['push', 'pull_request', 'workflow_dispatch']),
sha: z.string(),
ref: z.string(),
ref_name: z.string(),
ref_type: z.string(),
})
// We need to .optional() to support jobs that are not triggered by a GitHub event.
.optional(),
Expand Down

0 comments on commit 1910550

Please sign in to comment.