Skip to content

Avoid building actions that won't be needed? #26043

Answered by BrightRan
rhodrin asked this question in Actions
Discussion options

You must be logged in to vote

@rhodrin,

Modifying the matrix to contain information about which runner requires which actions is not really an ideal solution in this instance for a variety of reasons

Yes, you’re right.
When a runner requires multiple specific actions, this workaround indeed is not good enough.

In your case, when the runner does not require the Docker action, the main thing you need to do is avoiding downloading and building the Docker action so that avoiding the error caused by the docker build.

For the JavaScript and Composite actions, they generally do not need to build before execute the actions. Normally it will not have much effect to download the source files of the actions, even if the runner…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants