mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-05-20 04:39:16 +00:00
parent
361578b61f
commit
543979b083
1 changed files with 9 additions and 2 deletions
|
|
@ -105,8 +105,15 @@ checkupdates_runner:
|
|||
- touch config.py
|
||||
- git config --global user.email "fdroidci@bubu1.eu"
|
||||
- git config --global user.name "F-Droid checkupdates bot"
|
||||
- url_host=`git remote get-url origin | sed -e "s/https:\/\/gitlab-ci-token:.*@//g"`
|
||||
- git remote set-url origin "https://gitlab-ci-token:${CI_GIT_PUSH_TOKEN}@${url_host}"
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
- cp "${GITLAB_KNOWN_HOSTS}" ~/.ssh/known_hosts
|
||||
- chmod 644 ~/.ssh/known_hosts
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "${CHECKUPDATES_SSH_DEPLOY_KEY}" | tr -d '\r' | ssh-add -
|
||||
- url_host=$(echo "${CI_REPOSITORY_URL}" | sed -e 's|https\?://gitlab-ci-token:.*@|ssh://git@|g')
|
||||
- echo "${url_host}"
|
||||
- git remote set-url --push origin "${url_host}"
|
||||
script:
|
||||
- fdroid checkupdates --allow-dirty --auto --commit ${CHECKUPDATES_APPIDS}
|
||||
- git pull --rebase origin master
|
||||
|
|
|
|||
Loading…
Reference in a new issue