You can and should leverage a matrix strategy for this, and structure your action following this example published by Docker: Distribute build across multiple runners