-
Notifications
You must be signed in to change notification settings - Fork 51
Allow defining outputs for GHA jobs #845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,7 @@ sealed abstract class WorkflowJob { | |
| def container: Option[JobContainer] | ||
| def environment: Option[JobEnvironment] | ||
| def concurrency: Option[Concurrency] | ||
| def outputs: Map[String, String] | ||
| def timeoutMinutes: Option[Int] | ||
|
|
||
| def withId(id: String): WorkflowJob | ||
|
|
@@ -57,6 +58,7 @@ sealed abstract class WorkflowJob { | |
| def withContainer(container: Option[JobContainer]): WorkflowJob | ||
| def withEnvironment(environment: Option[JobEnvironment]): WorkflowJob | ||
| def withConcurrency(concurrency: Option[Concurrency]): WorkflowJob | ||
| def withOutputs(outputs: Map[String, String]): WorkflowJob | ||
| def withTimeoutMinutes(timeoutMinutes: Option[Int]): WorkflowJob | ||
|
|
||
| def updatedEnv(name: String, value: String): WorkflowJob | ||
|
|
@@ -86,6 +88,7 @@ object WorkflowJob { | |
| container: Option[JobContainer] = None, | ||
| environment: Option[JobEnvironment] = None, | ||
| concurrency: Option[Concurrency] = None, | ||
| outputs: Map[String, String] = Map(), | ||
|
||
| timeoutMinutes: Option[Int] = None): WorkflowJob = | ||
| Impl( | ||
| id, | ||
|
|
@@ -107,6 +110,7 @@ object WorkflowJob { | |
| container, | ||
| environment, | ||
| concurrency, | ||
| outputs, | ||
| timeoutMinutes | ||
| ) | ||
|
|
||
|
|
@@ -130,6 +134,7 @@ object WorkflowJob { | |
| container: Option[JobContainer], | ||
| environment: Option[JobEnvironment], | ||
| concurrency: Option[Concurrency], | ||
| outputs: Map[String, String], | ||
| timeoutMinutes: Option[Int]) | ||
| extends WorkflowJob { | ||
|
|
||
|
|
@@ -153,6 +158,7 @@ object WorkflowJob { | |
| override def withContainer(container: Option[JobContainer]): WorkflowJob = copy(container = container) | ||
| override def withEnvironment(environment: Option[JobEnvironment]): WorkflowJob = copy(environment = environment) | ||
| override def withConcurrency(concurrency: Option[Concurrency]): WorkflowJob = copy(concurrency = concurrency) | ||
| override def withOutputs(outputs: Map[String, String]): WorkflowJob = copy(outputs = outputs) | ||
| override def withTimeoutMinutes(timeoutMinutes: Option[Int]): WorkflowJob = copy(timeoutMinutes = timeoutMinutes) | ||
|
|
||
| def updatedEnv(name: String, value: String): WorkflowJob = copy(env = env.updated(name, value)) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be accomplished without bumping the version here? This is effectively a major version change, with all that entails for libraries. I haven't looked closely at whether it's necessary or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried that first but the Mima check failed without the version bump, so I sent another commit with it.