Skip to content

Override repository env var #25649

Discussion options

You must be logged in to vote

@jacobtomlinson ,

Whether that action you are using in your workflow has an input parameter that allows users to specify which repository the API is executed for? Please check it.

If the environment variable " GITHUB_REPOSITORY" has been set as the default input and the fixed input in the action, you indeed can’t specify other repositories.

As a workaround, maybe you can try to copy/fork the repository of the action into your own organization. Then add an input parameter to allow users to specify which repository the API is executed for, and also replace " GITHUB_REPOSITORY" with this  input parameter in the related scripts executed in the action. Then you can use this custom action in yo…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants