-
Notifications
You must be signed in to change notification settings - Fork 2
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
Some releases fail to clone. Run action shows set-output
warning instead.
#14
Comments
Hi. Thanks for the issue The action does not copy files from the releases on the target repo to your repo. It only creates releases on your repo that match the release on the target. If you want to copy release files, you would need another workflow to run on release I'll look into the set output issue |
I can edit the ReadME to note that info. Right now the text says "clone releases from a source repo to your repo". So it's unclear if binaries are included or not. Could that feature be added as an option? Including binaries is very helpful in most cases I can think of. Another minor item I just noticed. The "prerelease" checkbox is checked on source repo, but appears not to carry through to the target repo's drafts. |
I'm taking a look at this today and will see what I can do. |
#15 - Fixes the set-output issue These will be available in the v1.6.0 release once the release PR is merged I'm still looking into copying release assets. |
Please try out the 1.6.0 release and the new copy_assets input and let me know if that works for your needs. |
Having an issue accessing the 1.6.0 release -
Same issue going to that link in a browser - |
I missed a checkbox to enable un-authed access to the ghcr package. Please give it a try again and it should work for you now. |
Several improvements over last time!
Remaining possible improvements.
Notes.
|
When I try to open that URL, it returns a 404. GitHub returns a 404 when you don't have permission to access a resource rather than a 403 to prevent enumeration. I'd suggest you check out the permissions of the token you're using with the action to see if, for some reason, it doesn't have access to that file. As for the other issues, I added more debug logging in v1.6.5 (ignore the interim releases). That debug logging might give you more insight into why releases are not being cloned. |
Got some useful info! Failure to migrate the first 3 of the 7 releases
Releases are migrated without assets
|
Please try v1.7.0 and let me know if it works as expected. I created a private repo and was able to clone a release and copy over the assets using a Personal Access Token (PAT). You'll have to use a PAT with access to the source repo for this to work. Thank you for the link to the pip-tools issue; that helped. Just to comment on something from earlier discussion, the action is not copying the Source Code zip and tar.gz from the source repo. Those assets are created automatically when you create a release. They will contain the source code of the destination repo, at the time the release and tag are created. I don't think you can delete these. |
v1.7.0 is working!! This is extremely helpful for our team. Now we can keep source code in the private repos, while copying releases to internal / public repos. All in a simple automated way. No further code changes to suggest. A few comments on the docs.
|
Glad it's working, I'll update some docs to mention the new feature and update that example you found. @all-contributors please add @jrbe228 for bug and ideas |
I've put up a pull request to add @jrbe228! 🎉 |
I get the following output from building an Action -
Of the 7 releases in the source repo, the first 4 now appear as drafts in my target repo. The other 3 fail to clone. Of the 4 repos which did manage to transfer as drafts, all of them were missing binaries.
My YAML -
Expected behavior
All 7 repos transfer, including binaries.
The text was updated successfully, but these errors were encountered: