question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide first-party API to output files directly

See original GitHub issue

Rather than encouraging users to pipe files it’d be easier to to have something like a Workflow.writeToFile(inputPath: Path, outputPath: Path) API. This also allows users like me with a lot of workflows to be able to generate all of the outputs in one go without having to resort to too much shell scripting. Having at least the output path be a property in the workflow would also help simplify this. Ultimately I envision being able to do something like this in a CI workflow to automatically update YAML files without requiring a consistency check job in each individual workflow

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

//INCLUDE workflow1.kt
//INCLUDE workflow2.kt
//INCLUDE workflow3.kt
//INCLUDE workflow4.kt

arrayOf(workflow1, workflow2, workflow3, workflow4).forEach { workflow ->
  workflow.writeToFile() // implicitly uses an output parameter provided in the workflow itself
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
krzema12commented, Jan 20, 2022

Just released - should be in Maven Central within minutes.

1reaction
msfjarviscommented, Jan 20, 2022

New API looks great, thanks for fixing this so quickly! Excited to try this out once released 👍🏼

Read more comments on GitHub >

github_iconTop Results From Across the Web

Distribute First-Party Data to Google
First-party data can be distributed to Google through three destination options, depending on which properties you want to use the data on ...
Read more >
Consuming APIs with Retrofit | CodePath Android Cliffnotes
The library provides a powerful framework for authenticating and interacting with APIs and sending network requests with OkHttp.
Read more >
Using the Spotify Connect Web API Beta
- With Connect Web API you can only control Spotify Premium users' playback. Use the Spotify Connect Web API Endpoints to create a...
Read more >
How to access first party cookies after Storage API granted it?
Have you tried executing document.requestStorageAccess() directly inside the click handler instead of inside the hasStorageAccess callback?
Read more >
Configuration options for isort
Specifies the name of a formatting plugin to use when producing output. Type: String Default: Config default: Python & Config File Name: formatter....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found