Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Make Gradle build output available to subsequent actions #112

Closed
bigdaz opened this issue Nov 1, 2021 · 4 comments
Closed

Make Gradle build output available to subsequent actions #112

bigdaz opened this issue Nov 1, 2021 · 4 comments
Labels
enhancement New feature or request
Milestone

Comments

@bigdaz
Copy link
Member

bigdaz commented Nov 1, 2021

There are circumstances where a workflow needs to make decisions based on the output of a Gradle invocation.
One example is running gradle tasks to determine if a particular tasks is available before trying to run that task. If the build output was available for processing, this would be possible.

The simple option is to make the build output available as an action output. If this proves too expensive then we could write output to file for later use.

@bigdaz bigdaz added the enhancement New feature or request label Nov 1, 2021
@drmaciej
Copy link

I ended up here trying to implement an identical thing - running tasks to see if a task is available, then running it. I've started with a tasks | grep and got Task '|' not found back :)

@bigdaz
Copy link
Member Author

bigdaz commented Dec 2, 2021

@drmaciej Thanks for your feedback. I'm now spiking to see how difficult it would be to allow the action to perform caching, provisioning Gradle and build-scan capture without owning the actual Gradle invocation. Something more like a setup-gradle action that configured everything, but allowed you to use a run action to actually execute Gradle.

@bigdaz bigdaz added this to the v2.1 milestone Dec 17, 2021
@bigdaz
Copy link
Member Author

bigdaz commented Dec 31, 2021

With gradle-build-action@v2.1 it is now possible to use the action to configure Gradle and use a standard run action for the actual Gradle invocation. This should allow you to capture the build output, process it however you like, and make it available to subsequent actions.

@bigdaz bigdaz closed this as completed Dec 31, 2021
@drmaciej
Copy link

drmaciej commented Jan 6, 2022

nice one, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants