forked from Mudlet/Mudlet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.workflow
114 lines (96 loc) · 2.75 KB
/
main.workflow
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# workflow "Update translation texts" {
# on = "push"
# resolves = ["Commit to a branch and push"]
# }
# action "Filters for GitHub Actions" {
# uses = "actions/bin/filter@master"
# args = "branch development"
# }
# action "cpp or ui files updated" {
# uses = "docker://cdssnc/touched-github-action"
# needs = ["Filters for GitHub Actions"]
# args = "{**cpp, **ui}"
# }
# action "run lupdate" {
# uses = "Mudlet/lupdate-action@master"
# needs = ["cpp or ui files updated"]
# args = "-recursive ./src/ ./3rdparty/dblsqd/dblsqd ./3rdparty/edbee-lib/edbee-lib -ts ./translations/mudlet.ts"
# }
# action "xmlstarlet" {
# uses = "Mudlet/xmlstarlet-action@master"
# needs = ["run lupdate"]
# args = "ed -P -L -d translations/mudlet.ts //@line"
# }
# action "Commit to a branch and push" {
# uses = "Mudlet/commit-action-branch@master"
# needs = ["xmlstarlet"]
# secrets = ["GITHUB_TOKEN"]
# env = {
# USERNAME = "mudlet-bot"
# USEREMAIL = "info@mudlet.org"
# BRANCH_NAME = "translations/translation-updates"
# }
# }
# workflow "Approve translation texts PRs" {
# on = "pull_request"
# resolves = ["hmarr/auto-approve-action@master"]
# }
# action "Run only on translation PRs" {
# uses = "actions/bin/filter@master"
# args = "label translations"
# }
# action "hmarr/auto-approve-action@master" {
# uses = "hmarr/auto-approve-action@master"
# needs = ["Run only on translation PRs"]
# secrets = ["GITHUB_TOKEN"]
# }
# workflow "automerge pull requests on updates" {
# on = "pull_request"
# resolves = ["automerge"]
# }
# workflow "automerge pull requests on reviews" {
# on = "pull_request_review"
# resolves = ["automerge"]
# }
# # workflow "automerge pull requests on status updates" {
# # on = "status"
# # resolves = ["automerge"]
# # }
# action "automerge" {
# uses = "pascalgn/automerge-action@master"
# secrets = ["GITHUB_TOKEN"]
# env = {
# AUTOMERGE = "translations"
# MERGE_METHOD = "rebase"
# }
# }
# workflow "delete translation branch" {
# on = "pull_request"
# resolves = ["branch cleanup"]
# }
# action "branch cleanup" {
# needs = "Run only on translation PRs"
# uses = "jessfraz/branch-cleanup-action@master"
# secrets = ["GITHUB_TOKEN"]
# }
# workflow "Create translation update PR" {
# on = "push"
# resolves = ["Create PR"]
# }
# action "Create PR" {
# uses = "vsoch/pull-request-action@master"
# secrets = ["GITHUB_TOKEN"]
# env = {
# BRANCH_PREFIX = "translations/"
# PULL_REQUEST_BRANCH = "development"
# PULL_REQUEST_TITLE = "Update texts for translators"
# }
# }
# workflow "Label translation update PR" {
# on = "pull_request"
# resolves = ["label PR"]
# }
# action "label PR" {
# uses = "TimonVS/pr-labeler@master"
# secrets = ["GITHUB_TOKEN"]
# }