I need this plugin and have planned to implement it in October. It would be nice to use your implementation or to be involved in it. Let me know if I may help you.
I am always looking for folks to collaborate with. Many hands make light work.
I have not created the drone plugin template yet. I will be doing that this week. I will send you a PM, with details and we can go from there.
However, when I start the pipeline, I get the following error, where both variables are not being passed in.
And this is at the start of the image being called.
Hi, not sure what is the problem here, although if you suspect it is the special character from “branch” you could try wrapping it with single quotes, i.e.: branch: 'feature/drone-semantic-release'
That said, drone injects into every build step a list of environment variables, including a DRONE_BRANCH, which includes your current branch, on ‘push’ events, at least, not sure about ‘pull-request’… in this case, I think it holds the branch your PR is pointing to!
You could also run a command like “env” inside your script to be sure that the arguments are being passed down correctly. And maybe also start the shell in debug mode (set -x) so it prints the “npx” command.
I like to add a “debug:” parameter to my plugins to print stuff like that, so it’s easy to find errors.