File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ [
2+ {
3+ "version" : 2
4+ },
5+ {
6+ "action" : {
7+ "script" : " git push gitcode.com --delete refs/heads/${ref}\n git push gitee.com --delete refs/heads/${ref}\n git checkout main\n git branch --delete --force ${ref}" ,
8+ "showOutput" : false ,
9+ "type" : " sh" ,
10+ "waitForExit" : true
11+ },
12+ "name" : " Delete All" ,
13+ "refTargets" : [
14+ " localbranch" ,
15+ " remotebranch"
16+ ],
17+ "target" : " ref"
18+ },
19+ {
20+ "action" : {
21+ "script" : " git fetch --all --prune" ,
22+ "showOutput" : false ,
23+ "type" : " sh" ,
24+ "waitForExit" : true
25+ },
26+ "name" : " Fetch All" ,
27+ "refTargets" : [
28+ " localbranch" ,
29+ " remotebranch"
30+ ],
31+ "target" : " ref"
32+ },
33+ {
34+ "action" : {
35+ "script" : " git push origin refs/heads/${ref} --verbose\n git push gitcode.com refs/heads/${ref} --verbose\n git push gitee.com refs/heads/${ref} --verbose" ,
36+ "showOutput" : false ,
37+ "type" : " sh" ,
38+ "waitForExit" : true
39+ },
40+ "name" : " Push All" ,
41+ "refTargets" : [
42+ " localbranch" ,
43+ " remotebranch"
44+ ],
45+ "target" : " ref"
46+ }
47+ ]
You can’t perform that action at this time.
0 commit comments