Skip to content

Extracting Common Code #394

Answered by krzema12
scottbisaillon asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Scott, thanks for the kind words - I'm happy that you see the value the library gives :)

Looking at your case, let's go step by step. Let's say you have such workflow script:

#!/usr/bin/env kotlin
@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.24.0")

import it.krzeminski.githubactions.actions.actions.CheckoutV3
import it.krzeminski.githubactions.domain.RunnerType.UbuntuLatest
import it.krzeminski.githubactions.domain.triggers.PullRequest
import it.krzeminski.githubactions.domain.triggers.Push
import it.krzeminski.githubactions.dsl.expressions.Contexts.github
import it.krzeminski.githubactions.dsl.expressions.expr
import it.krzeminski.githubactions.dsl.workflow
import it.kr…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@scottbisaillon
Comment options

Answer selected by scottbisaillon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants