mathieudutour / github-tag-action

A Github Action to automatically bump and tag master, on merge, with the latest SemVer formatted version. Works on any platform.
https://github.com/marketplace/actions/github-tag
MIT License
641 stars 201 forks source link

[feature request] Add support for using input to override the default repository url #127

Open sjonpaulbrown opened 2 years ago

sjonpaulbrown commented 2 years ago

Description This github action leverages the process.env.GITHUB_SERVER_URL and process.env.GITHUB_REPOSITORY environment variables to define the repository url. From everything that I have seen, these cannot easily be overwritten within Github actions. This prevents this GitHub Action from being able to create tags on other repositories outside of the one that kicked off the worfklow.

Proposal I would like to suggest that we add support for optional repo_url and repo inputs. This addition would require the creation of two new inputs for the GitHub Action, and it would require the repository url be altered to use these inputs while defaulting to the environment variables when the inputs do not exist.

sjonpaulbrown commented 2 years ago

As I have time, I will create a PR and test these changes. The overall changes should be small.

Yago-Ferrer commented 2 years ago

I have the same problem @sjonpaulbrown, I would like to tag and release three repositories using one workflow, and run the workflow from one of the repos. @mathieudutour 🔝