Run flatpak-external-data-checker on our in-repo manifests
Problems:
- CI job needs to be able to push to invent repositories
- flatpak-external-data-checker does not support opening merge requests on GitLab
Possible solutions:
- account used by the CI job should use the fork workflow, so it doesn't need push access to mainline KDE repositories
- Use
--commit-only
and handle opening the merge request ourselves.
This pipeline is somewhat but not completely tested. For the next steps, we need a token and an ssh key for a new GitLab account. @sysadmin
external-data-checker:
image:
name: ghcr.io/flathub/flatpak-external-data-checker:latest
entrypoint: [""]
variables:
GIT_AUTHOR_NAME: Flatpak External Data Checker
GIT_COMMITTER_NAME: Flatpak External Data Checker
GIT_AUTHOR_EMAIL: scripty@kde.org
GIT_COMMITTER_EMAIL: scripty@kde.org
EMAIL: scripty@kde.org
script:
- export BRANCH_NAME="$(git rev-parse --abbrev-ref HEAD)"
- /app/flatpak-external-data-checker --update --commit-only .flatpak-manifest.json
- pip3 install git+https://invent.kde.org/sdk/git-lab
- git lab workflow --fork
- git lab login --host invent.kde.org --token "${TOKEN}"
- git lab mr --noninteractive --target-branch "${BRANCH_NAME}"