File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 44 directory : " /"
55 schedule :
66 interval : " weekly"
7+ target-branch : " develop"
78 labels :
89 - " dependencies"
Original file line number Diff line number Diff line change @@ -2,10 +2,9 @@ name: Go
22
33on :
44 push :
5- branches : [ master ]
5+ branches : [ develop ]
66
77jobs :
8-
98 test :
109 runs-on : ubuntu-latest
1110 steps :
2625
2726 - name : Test
2827 run : go test -v ./...
28+
29+ promote :
30+ needs : test
31+ runs-on : ubuntu-latest
32+ steps :
33+ - uses : actions/checkout@v2
34+ with :
35+ # fetch-depth: Number of commits to fetch. 0 indicates all history for all branches and tags.
36+ fetch-depth : 0
37+ - name : Promote to master
38+ run : |
39+ git fetch --all
40+
41+ git checkout master
42+ git pull --rebase
43+
44+ git rebase develop
45+ git push
You can’t perform that action at this time.
0 commit comments