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

Peform single push on upload in case of multiple releases #314

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

amalgamm
Copy link

Resolves the problem mentioned in this PR

Lets say you want to upload more than one release and place it near the index file. After the first push your second push will be rejected with an error "Updates were rejected because a pushed branch tip is behind its remote". So either you need to pull changes before push another release or push all releases once in the end of upload action.

In case of pulling changes and pushing every release separately you'll face github will launch as many "pages build and deployment" actions as there are new releases you want to upload. All except one will be canceled, but the list of actions will look like a mess.

So the most efficient way is to make single push in the end of upload.

@amalgamm
Copy link
Author

amalgamm commented Aug 7, 2023

@davidkarlsen can you have a look at this pr?

@gaelgatelement
Copy link

I just realized that my PR is a duplicate of this one, and this one is better as it fixes the tests. #336

Can we have someone take a look at this PR please ?

@cpanato cpanato closed this Oct 27, 2023
@cpanato cpanato reopened this Oct 27, 2023
@cpanato
Copy link
Member

cpanato commented Oct 27, 2023

does anyone can provide some manual tests on this? @amalgamm @gaelgatelement and show the logs and maybe the ci job

@gaelgatelement
Copy link

I'm using this fork in our own CI runs : https://github.com/vector-im/ess-starter-edition-core/actions/runs/6624187779

@cpanato
Copy link
Member

cpanato commented Oct 27, 2023

thanks @gaelgatelement
@amalgamm can you rebase and fix the lint issues?

@cpanato
Copy link
Member

cpanato commented Oct 27, 2023

tested on my side and seems to work fine :)

@ibice
Copy link

ibice commented Nov 23, 2023

Hi! I just run into the issue this PR fixes, it'd be cool to have it merged!

Signed-off-by: Ivan Panteleev <ispanteleev@gmail.com>
Signed-off-by: amalgamm <ispanteleev@gmail.com>
Signed-off-by: amalgamm <ispanteleev@gmail.com>
@amalgamm
Copy link
Author

amalgamm commented Feb 5, 2024

@cpanato I think I fixed the lint. Sorry it took so long

@cpanato
Copy link
Member

cpanato commented Feb 22, 2024

Did you test the case with PackagesWithIndex set as well? not sure if will change any behavior

@amalgamm
Copy link
Author

Did you test the case with PackagesWithIndex set as well? not sure if will change any behavior

I didn't but I think this case is covered by tests

@jbrandli
Copy link

please merge

@marquesj2-ppb
Copy link

marquesj2-ppb commented May 9, 2024

Any way to get this merged? @cpanato

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants