File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ name: Sync branch with master
3
3
on :
4
4
repository_dispatch :
5
5
types : sync-branch
6
+ workflow_dispatch :
7
+ inputs :
8
+ branch_name :
9
+ description : ' Target Branch Name'
10
+ required : true
6
11
7
12
jobs :
8
13
build :
@@ -15,15 +20,15 @@ jobs:
15
20
node-version : 12.x
16
21
- uses : actions/checkout@v2
17
22
with :
18
- ref : ${{ github.event.client_payload.branch_name }}
23
+ ref : ${{ github.event.inputs.branch_name || github.event. client_payload.branch_name }}
19
24
# This does a test post-merge and only pushes the result if the test succeeds
20
25
# required client_payload members:
21
26
# branch_name - the target branch
22
27
- run : |
23
28
git config user.email "[email protected] "
24
29
git config user.name "TypeScript Bot"
25
30
git fetch origin master
26
- git merge master --no-ff
31
+ git merge origin/ master --no-ff
27
32
npm install
28
33
npm test
29
34
git push
You can’t perform that action at this time.
0 commit comments