Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Apitzsch <git@apitzsch.eu>2023-01-07 12:38:45 +0300
committerPhilipp Hörist <philipp@hoerist.com>2023-01-07 15:33:58 +0300
commitcbecf724ccaf33972036bae9ac5e41acd20510eb (patch)
tree2afd1dbff9a0feafe2d37f5e7231ebe9b847bfe2 /.gitlab-ci.yml
parenta8474927bd2f1861a4e3750a5580530829bb7bc3 (diff)
ci: Update submodule in flathub repo
Source of the update-index command: https://stackoverflow.com/q/33514642
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7280ddc78..cad80d380 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -134,10 +134,14 @@ deploy-flatpak:
- eval $(ssh-agent -s)
- .ci/prepare_git.sh github.com "${FLATHUB_DEPLOY_KEY}"
script:
+ # extract the current commit hash of the shared-modules submodule
+ - submodule_commit=$(git submodule status flatpak/shared-modules | cut -c 2-41)
- git clone git@github.com:flathub/org.gajim.Gajim.git
- cd org.gajim.Gajim
- mv ../flatpak/org.gajim.Gajim.yaml org.gajim.Gajim.yaml
- mv ../flatpak/app-overrides.json app-overrides.json
+ # point the shared-modules submodule to the new commit, without fetching the repository
+ - git update-index --cacheinfo 160000,${submodule_commit},shared-modules
- git diff
- git add --all
- git commit -m "$CI_COMMIT_TAG"