Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dest_token doesn't work if dest_repo_github_api_url and src_repo_github_api_url are the same #206

Open
Legend-Master opened this issue Mar 11, 2024 · 0 comments

Comments

@Legend-Master
Copy link

Legend-Master commented Mar 11, 2024

I'm trying to setup a repo on A to mirror releases to B with a setting like this

token: ${{ secrets.GITHUB_TOKEN }}
dest_token: ${{ secrets.MIRROR_TO_REPO_B_TOKEN }}
src_repo: xxx/A
dest_repo: xxx/B

dest_github = (
src_github
if inputs["dest_repo_github_api_url"] == inputs["src_repo_github_api_url"]
else Github(inputs["dest_token"], base_url=inputs["dest_repo_github_api_url"])
)

Should be something like this

dest_github = Github(inputs["dest_token"] or inputs["token"], base_url=inputs["dest_repo_github_api_url"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant