-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathstep.yml
More file actions
156 lines (147 loc) · 6.31 KB
/
Copy pathstep.yml
File metadata and controls
156 lines (147 loc) · 6.31 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#
# A couple of useful guides & docs:
#
# - Main Bitrise CLI docs: https://github.com/bitrise-io/bitrise/tree/master/_docs
# - Step Development Guideline: https://github.com/bitrise-io/bitrise/blob/master/_docs/step-development-guideline.md
# - Bitrise.yml format spec: https://github.com/bitrise-io/bitrise/blob/master/_docs/bitrise-yml-format-spec.md
# - Bitrise docs: http://devcenter.bitrise.io/
# - Bitrise CLI guides: http://devcenter.bitrise.io/bitrise-cli/
title: |-
Trigger Bitrise workflow
summary: |
Triggers a workflow on bitrise.io with specified parameters.
description: |
The main purpose of this step is to trigger another workflow process of the same app, with the same build parameters, to achieve
multiple workflows that all start on the same trigger. Optionally, we would like to do this in parallel and with different necessity of checks.
For example: unit tests require a PR status check but mutation tests do not.
However you can also provide modified build parameters, different Bitrise app and/or choose the same workflow.
All the parameters except the workflow ID have default values equal to those in a current build. The workflow ID needs to be specified explicitly
to avoid accidental infinite recursive triggers of the same build.
You can use `$BITRISE_TRIGGERED_WORKFLOW_ID` environment variable to get current workflow ID.
See [devcenter](http://devcenter.bitrise.io/api/build-trigger/#build-params) for more information about build parameters.
Specifying [environment variables](http://devcenter.bitrise.io/api/build-trigger/#specify-environment-variables) is not supported by this step.
website: https://github.com/DroidsOnRoids/bitrise-step-trigger-bitrise-workflow
source_code_url: https://github.com/DroidsOnRoids/bitrise-step-trigger-bitrise-workflow
support_url: https://github.com/DroidsOnRoids/bitrise-step-trigger-bitrise-workflow/issues
type_tags:
- utility
is_requires_admin_user: false
is_always_run: false
is_skippable: false
run_if: ""
toolkit:
go:
package_name: github.com/DroidsOnRoids/bitrise-step-trigger-bitrise-workflow
inputs:
- app_slug: $BITRISE_APP_SLUG
opts:
title: "Bitrise App Slug"
summary: Bitrise App Slug. You can view your App's Slug on the `Code` tab of the app.
is_expand: true
is_required: true
- api_token:
opts:
title: "Build trigger API Token"
summary: Build trigger API Token. You can view and regenerate your App's API Token on the `Code` tab of the app.
is_expand: true
is_required: true
is_sensitive: true
- branch: $BITRISE_GIT_BRANCH
opts:
title: "(Source) Branch to build"
summary: The (Source) Branch to build. In the case of a standard git commit, this is the branch of the commit. In case of a Pull Request build this is the source branch, the one the PR was started from.
is_expand: true
is_required: false
- tag: $BITRISE_GIT_TAG
opts:
title: "git Tag to build"
is_expand: true
is_required: false
- commit_hash: $BITRISE_GIT_COMMIT
opts:
title: "git commit hash to build"
is_expand: true
is_required: false
- commit_message: $BITRISE_GIT_MESSAGE
opts:
title: "git commit message (or build's message)"
is_expand: true
is_required: false
- workflow_id:
opts:
title: "Workflow ID"
summary: Force the use of the specified workflow ID. If empty, then the workflow will be selected, based on the project's [Trigger Map](http://devcenter.bitrise.io/webhooks/trigger-map/) config.
is_expand: true
is_required: false
- branch_dest: $BITRISEIO_GIT_BRANCH_DEST
opts:
title: "Pull request destination branch"
summary: |
Used only in the case of Pull Request builds: this is the destination/target branch of the Pull Request, and the one the PR will be merged into.
is_expand: true
is_required: false
- pull_request_id: $PULL_REQUEST_ID
opts:
title: "Pull Request ID"
summary: Pull Request ID on the source code hosting system (e.g. the PR number on GitHub).
is_expand: true
is_required: false
- pull_request_repository_url: $BITRISEIO_PULL_REQUEST_REPOSITORY_URL
opts:
title: "Pull Request repository URL"
summary: The repository URL from where the Pull Request is sent. E.g. if it's created from a fork this should be the fork's URL.
is_expand: true
is_required: false
- pull_request_merge_branch: $BITRISEIO_PULL_REQUEST_MERGE_BRANCH
opts:
title: "Pull Request pre-merge branch"
summary: |
The pre-merge branch: if the source code hosting system supports & provides the pre-merged state of the PR on a special "merge branch" (ref). Probably only GitHub supports this.
is_expand: true
is_required: false
- pull_request_head_branch: $BITRISEIO_PULL_REQUEST_HEAD_BRANCH
opts:
title: "Pull Request head branch"
summary: The Pull Request's "head branch" (refs/), if the source code hosting system supports & provides this. This special git ref should point to the source of the Pull Request. Supported by GitHub and GitLab.
is_expand: true
is_required: false
- exported_environment_variable_names:
opts:
title: "Names of environment variables to export"
summary: |
`|` separated names of environment variables to export from current environment to triggered workflow, without leading `$`.
is_expand: true
is_required: false
- branch_repo_owner:
opts:
title: "Pull Request source repo owner"
summary: The Pull Request's source repo owner login
is_expand: true
is_required: false
- branch_dest_repo_owner:
opts:
title: "Pull Request destination repo owner"
summary: The Pull Request's destination repo owner login
is_expand: true
is_required: false
outputs:
- TRIGGERED_BUILD_SLUG:
opts:
title: "Triggered build slug"
summary: ""
description: "Triggered build slug"
- TRIGGERED_BUILD_NUMBER:
opts:
title: "Triggered build number"
summary: ""
description: "Triggered build number"
- TRIGGERED_BUILD_URL:
opts:
title: "Triggered build URL"
summary: ""
description: "Triggered build URL"
- TRIGGERED_WORKFLOW_ID:
opts:
title: "Triggered workflow ID"
summary: ""
description: "Triggered workflow ID"