github-tag-action icon indicating copy to clipboard operation
github-tag-action copied to clipboard

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

Open sjonpaulbrown opened this issue 3 years ago • 2 comments

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 avatar May 05 '22 15:05 sjonpaulbrown

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

sjonpaulbrown avatar May 05 '22 15:05 sjonpaulbrown

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 🔝

Yago-Ferrer avatar May 12 '22 07:05 Yago-Ferrer