Provide first-party API to output files directly
See original GitHub issueRather 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:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just released - should be in Maven Central within minutes.
New API looks great, thanks for fixing this so quickly! Excited to try this out once released 👍🏼