1
- name : " Combine PRs"
1
+ name : ' Combine PRs'
2
2
3
3
# Controls when the action will run - in this case triggered manually
4
4
on :
5
5
workflow_dispatch :
6
6
inputs :
7
7
branchPrefix :
8
- description : " Branch prefix to find combinable PRs based on"
8
+ description : ' Branch prefix to find combinable PRs based on'
9
9
required : true
10
- default : " dependabot"
10
+ default : ' dependabot'
11
11
mustBeGreen :
12
- description : " Only combine PRs that are green (status is success)"
12
+ description : ' Only combine PRs that are green (status is success)'
13
13
required : true
14
- default : " true"
14
+ default : ' true'
15
15
combineBranchName :
16
- description : " Name of the branch to combine PRs into"
16
+ description : ' Name of the branch to combine PRs into'
17
17
required : true
18
- default : " combine-prs-branch"
18
+ default : ' combine-prs-branch'
19
19
ignoreLabel :
20
- description : " Exclude PRs with this label"
20
+ description : ' Exclude PRs with this label'
21
21
required : true
22
- default : " nocombine"
22
+ default : ' nocombine'
23
23
24
24
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
25
25
jobs :
53
53
repo: context.repo.repo
54
54
});
55
55
56
- group_labels = ["go", "python", "terraform "];
56
+ group_labels = ["javascript "];
57
57
branches = {};
58
58
59
59
base_branch = null;
@@ -118,9 +118,7 @@ jobs:
118
118
}
119
119
120
120
core.setOutput('base-branch', base_branch);
121
- core.setOutput('branches-go', (branches["go"] || []).join(' '));
122
- core.setOutput('branches-python', (branches["python"] || []).join(' '));
123
- core.setOutput('branches-terraform', (branches["terraform"] || []).join(' '));
121
+ core.setOutput('branches-js', (branches["javascript"] || []).join(' '));
124
122
125
123
return "ok"
126
124
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -131,12 +129,8 @@ jobs:
131
129
- name : Created combined branch and PR
132
130
env :
133
131
BASE_BRANCH : ${{ steps.fetch-branch-names.outputs.base-branch }}
134
- BRANCHES_1 : ${{ steps.fetch-branch-names.outputs.branches-go }}
135
- BRANCHES_2 : ${{ steps.fetch-branch-names.outputs.branches-python }}
136
- BRANCHES_3 : ${{ steps.fetch-branch-names.outputs.branches-terraform }}
137
- COMBINE_NAME_1 : ${{ env.COMBINE_BRANCH_NAME }}-go
138
- COMBINE_NAME_2 : ${{ env.COMBINE_BRANCH_NAME }}-python
139
- COMBINE_NAME_3 : ${{ env.COMBINE_BRANCH_NAME }}-terraform
132
+ BRANCHES_1 : ${{ steps.fetch-branch-names.outputs.branches-js }}
133
+ COMBINE_NAME_1 : ${{ env.COMBINE_BRANCH_NAME }}-js
140
134
GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
141
135
run : |
142
136
set -x
0 commit comments