File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 81
81
if : github.event_name == 'push'
82
82
env :
83
83
REMOTE : https://x-access-token:${{secrets.GITHUB_TOKEN}}@github.com/${{github.repository}}.git
84
- run : python docs/build.py
84
+ run : |
85
+ git config --global user.email "bot@arduino.cc"
86
+ git config --global user.name "ArduinoBot"
87
+ python docs/build.py
Original file line number Diff line number Diff line change 21
21
from git import Repo
22
22
23
23
24
+ DEV_BRANCHES = ["master" ]
25
+
26
+
24
27
class TestScript (unittest .TestCase ):
25
28
def test_get_docs_version (self ):
26
29
ver , alias = get_docs_version ("master" , [])
@@ -41,7 +44,7 @@ def test_get_docs_version(self):
41
44
42
45
43
46
def get_docs_version (ref_name , release_branches ):
44
- if ref_name == "master" :
47
+ if ref_name in DEV_BRANCHES :
45
48
return "dev" , ""
46
49
47
50
if ref_name in release_branches :
You can’t perform that action at this time.
0 commit comments