You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This step publishes the contents of the working directory to GitHub if it is a new repository.
91
-
- id: publish
92
-
name: Publish the template in a new repository
93
-
if: ${{ parameters.pluginLocation === 'Create a new repository within the specified organization' }}
91
+
#GitHub: This step publishes the contents of the working directory to GitHub if it is a new repository.
92
+
- id: publishGithubRepo
93
+
name: Publish the template in a new GitHub repository
94
+
if: ${{ (parameters.repoUrl | parseRepoUrl).host === 'github.com' and parameters.pluginLocation === 'Create a new repository within the specified organization' }}
94
95
action: publish:github
95
96
input:
96
97
allowedHosts: ['github.com']
97
98
description: This is the template for the ${{ parameters.workflow_id }} workflow.
98
99
repoUrl: ${{ parameters.repoUrl }}
99
100
sourcePath: templates/${{parameters.workflow_id}}
100
101
101
-
# This step creates a pull request with the contents of the working directory.
102
+
#GitHub: This step creates a pull request with the contents of the working directory.
102
103
- id: publishGithub
103
-
name: Create pull request with the template
104
-
if: ${{ parameters.pluginLocation === 'Submit a pull request to the same repository' }}
104
+
name: Create GitHub pull request with the template
105
+
if: ${{ (parameters.repoUrl | parseRepoUrl).host === 'github.com' and parameters.pluginLocation === 'Submit a pull request to the same repository' }}
description: This pull request creates template for running a workflow
114
+
115
+
# GitLab
116
+
- id: publishGitlabRepo
117
+
name: Publish the template in a new GitLab repository
118
+
action: publish:gitlab
119
+
if: ${{ (parameters.repoUrl | parseRepoUrl).host === 'gitlab.com' and parameters.pluginLocation === 'Create a new repository within the specified organization' }}
120
+
input:
121
+
allowedHosts: ['gitlab.com']
122
+
description: This is the template for the ${{ parameters.workflow_id }} workflow.
123
+
repoUrl: ${{ parameters.repoUrl }}
124
+
defaultBranch: main
125
+
126
+
# GitLab
127
+
- id: publishGitlab
128
+
name: Create GitLab merge request with the template
129
+
action: publish:gitlab:merge-request
130
+
if: ${{ (parameters.repoUrl | parseRepoUrl).host === 'gitlab.com' and parameters.pluginLocation === 'Submit a pull request to the same repository' }}
0 commit comments