diff options
author | Fabian Müller <80399010+fmoc@users.noreply.github.com> | 2021-06-10 18:47:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-10 18:47:24 +0300 |
commit | 6d3180adb0e4e0c9e7bca256760b63dd8cb6283d (patch) | |
tree | f67219c2fea5b9b06283f5e5c161421ee0d13a0b /.drone.star | |
parent | eb0df413b0d7bead854b2c81a9043c214bd3d3db (diff) |
Update translations on stable branch in GitHub actions (#8713)
* Remove translations job from Drone config
* Update translations in new GitHub actions workflow
* Remove obsolete command
* Move Docker commands into script
* Run job on stable branch
Diffstat (limited to '.drone.star')
-rw-r--r-- | .drone.star | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/.drone.star b/.drone.star index d74e6fd64..61ad82570 100644 --- a/.drone.star +++ b/.drone.star @@ -6,9 +6,6 @@ # def main(ctx): - translations_trigger = { - "cron": ["translations-2-7"], - } build_trigger = { "ref": [ "refs/heads/master", @@ -61,22 +58,6 @@ def main(ctx): "clang-debug-ninja", ], ), - - # Sync translations - update_translations( - ctx, - "client", - "translations", - read_image = "rabits/qt:5.12-desktop", - trigger = translations_trigger, - ), - notification( - name = "translations", - trigger = translations_trigger, - depends_on = [ - "translations-client", - ], - ), ] return pipelines @@ -302,52 +283,6 @@ def make(target, path, image = "owncloudci/transifex:latest"): ], } -def update_translations(ctx, name, path, read_image = "owncloudci/transifex:latest", write_image = "owncloudci/transifex:latest", trigger = {}, depends_on = []): - return { - "kind": "pipeline", - "name": "translations-" + name, - "platform": { - "os": "linux", - "arch": "amd64", - }, - "steps": [ - make("l10n-read", path, read_image), - make("l10n-push", path), - make("l10n-pull", path), - make("l10n-write", path, write_image), - make("l10n-clean", path), - # keep time window for commit races as small as possible - { - "name": "update-repo-before-commit", - "image": "docker:git", - "commands": [ - "git stash", - "git pull --ff-only origin +refs/heads/$${DRONE_BRANCH}", - '[ "$(git stash list)" = "" ] || git stash pop', - ], - }, - whenOnline({ - "name": "commit", - "image": "appleboy/drone-git-push", - "pull": "always", - "settings": { - "ssh_key": from_secret("git_push_ssh_key"), - "author_name": "ownClouders", - "author_email": "devops@owncloud.com", - "remote_name": "origin", - "branch": "${DRONE_BRANCH}", - "empty_commit": False, - "commit": True, - "commit_message": "[tx] updated " + name + " translations from transifex", - "no_verify": True, - "remote": "git@github.com:owncloud/client.git", - }, - }), - ], - "trigger": trigger, - "depends_on": depends_on, - } - def notification(name, depends_on = [], trigger = {}): trigger = dict(trigger) if not "status" in trigger: |