I'm trying to build a repository which allows me to build Docker images for different versions of a project I'm forking. The repo should have the following layout:
main
branch where the workflow is defined, with a trigger such as:
The workflow builds the software from any branch (basically aon: push: branches-ignore: - main
mvn clean package
,docker build
anddocker push
that applies to all versions of the software)- many
software-1.2.3
branches which don't contain any.github/workflow
files (it would be cumbersome to copy this file into each branch, and maintain it there)
From my research so far, it seems that GitHub Actions only runs when a workflow definition is present. However, I wonder if there's a way using webhooks or something to trick the system into doing what I want.
My next best option would probably be using workflow_dispatch,