Closed shumbo closed 3 years ago
Close #981
This PR adds support for uses: sh in Popper-to-Drone translator.
uses: sh
Drone's pipelines must be executed by one runner, so Popper workflows need to have the same type for its all steps.
type
For example,
steps: - uses: docker://alpine runs: ["echo", "command 1"] - uses: docker://alpine runs: ["echo", "command 2"]
this Popper workflow will be translated to pipeline: docker.
pipeline: docker
steps: - uses: sh runs: ["echo", "command 1"] - uses: sh runs: ["echo", "command 2"]
this will be translated to pipeline: exec workflow.
pipeline: exec
However,
steps: - uses: docker://alpine runs: ["echo", "command 1"] - uses: sh runs: ["echo", "command 2"]
this cannot be translated and shows an error.
Looks great ! I will try it out on my local once and merge.
Thanks a lot @shumbo .
Close #981
This PR adds support for
uses: sh
in Popper-to-Drone translator.Limitations
Drone's pipelines must be executed by one runner, so Popper workflows need to have the same
type
for its all steps.For example,
this Popper workflow will be translated to
pipeline: docker
.this will be translated to
pipeline: exec
workflow.However,
this cannot be translated and shows an error.