Gitlab CI/CD : How to update flatpak (flathub) when a new release is created
Hello everyone !
I have a quite complicated question/setup. I have my software on a Gitlab repo, and I'm publishing the software on flathub. everytime I do a release on Gitlab, I need to also update the flathub repo with the commit and the release tag, and I'm thinking this could be automated with Gitlab CI/CD.
When modifying the Flathub repo, I need to create a PR with my modifications and wait for the build process to complete. Then, I can merge the request.
Do you have any idea how can I automate the flathub part everytime I create a new release on Gitlab ?
My explaination might be a bit blurry, if that's the case, please feel free to ask for clarification.
Why not use a lightweight bash or git image and do your gitops in the job's script block? If you don't want to mess with your build job, then a job in the upstream stage of the build would create the PR, the build runs, another job would then merge the PR if the build succeeds.