• jmfayard

    jmfayard

    7 months ago
    I find the
    uses
    api not very intuitive (although it follows GitHub convention)
    uses(
                name = "Download common artifact",
                action = DownloadArtifactV2(
                    name = "common-artifact",
                    path = "python",
                )
            )
    I was thinking about adding this syntactic sugar
    fun step(name: String, condition: String? = null, action: () -> Action)
    so that we can do something like this
    step("Download common artifact") {
                DownloadArtifactV2(
                    name = "common-artifact",
                    path = "python",
                )
            }
    jmfayard
    Piotr Krzemiński
    3 replies
    Copy to Clipboard
  • jmfayard

    jmfayard

    7 months ago
    jmfayard
    Piotr Krzemiński
    18 replies
    Copy to Clipboard
  • Piotr Krzemiński

    Piotr Krzemiński

    7 months ago
  • jmfayard

    jmfayard

    7 months ago
    I was surprised how easy it is to break the compiler for Kotlin scripts It throwed two times
    error: backend Internal error: Exception during IR lowering
    File being compiled: /Users/jmfayard/tignum/backend-tignum-x/.github/workflows/build.main.kts
    then you no idea what line is causing the problems and have to ressort to trials and errors In my case it was those two snippets:
    fun secret(variable: String): String =
        "\${{ secrets.$variable }}"
    and
    data class Step(val name: String, val action: Action)
    
    infix fun String.does(action: Action) = Step(this, action)
    jmfayard
    Piotr Krzemiński
    3 replies
    Copy to Clipboard
  • Piotr Krzemiński

    Piotr Krzemiński

    7 months ago
    hi @jmfayard , thanks for implementing all these features you miss in the lib! you're really on fire with the contributions 🔥 please let me know once you think you've got all the features that you need in your workflows, then I'll prepare a release
    Piotr Krzemiński
    jmfayard
    5 replies
    Copy to Clipboard
  • andylamax

    andylamax

    7 months ago
    I plan on migrating our large project to use this library today. Fingers crossed
    andylamax
    Piotr Krzemiński
    +1
    24 replies
    Copy to Clipboard
  • andylamax

    andylamax

    7 months ago
    how does one get/set an id of a specific step?? Can I get outputs of a certain step?
    andylamax
    Piotr Krzemiński
    +1
    9 replies
    Copy to Clipboard
  • Piotr Krzemiński

    Piotr Krzemiński

    7 months ago
    @andylamax do you need any other feature or an action wrapper to support your workflows? I could add them into the next release to speed things up
    Piotr Krzemiński
    Nikky
    +1
    7 replies
    Copy to Clipboard
  • Piotr Krzemiński

    Piotr Krzemiński

    7 months ago
  • Nikky

    Nikky

    7 months ago
    thinking of adding a utility for multi workflow outputs, could use arguments passed to the script to have it print out the correct workflow and without args it will just write all the yaml files
    Nikky
    Piotr Krzemiński
    7 replies
    Copy to Clipboard