It seems like pre-action feature breaks GitHub actions composability.
GitHub doesn't support YAML anchors feature that would decrease code duplication.
However, GitHub provides composite actions which are defined the similar way action.yml in this repo does, but instead of JavaScript code it depends on and runs another actions. You can think of it like higher-order action.
The problematic scenario is following:
Define composite action in .github/actions/setup-clojure
It seems like
pre
-action feature breaks GitHub actions composability. GitHub doesn't support YAML anchors feature that would decrease code duplication.However, GitHub provides composite actions which are defined the similar way
action.yml
in this repo does, but instead of JavaScript code it depends on and runs another actions. You can think of it like higher-order action.The problematic scenario is following:
.github/actions/setup-clojure
.github/workflows/test
in the same repositoryDeLaGuardo/setup-clojure@9.3
outputs warning and skipsmain
entrypoint: