Skip to content

Commit e2f11e2

Browse files
Massimiliano Pippimasci
Massimiliano Pippi
authored andcommitted
config git in publish step, remove magic string from build script
1 parent 097212f commit e2f11e2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/docs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,7 @@ jobs:
8181
if: github.event_name == 'push'
8282
env:
8383
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

docs/build.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
from git import Repo
2222

2323

24+
DEV_BRANCHES = ["master"]
25+
26+
2427
class TestScript(unittest.TestCase):
2528
def test_get_docs_version(self):
2629
ver, alias = get_docs_version("master", [])
@@ -41,7 +44,7 @@ def test_get_docs_version(self):
4144

4245

4346
def get_docs_version(ref_name, release_branches):
44-
if ref_name == "master":
47+
if ref_name in DEV_BRANCHES:
4548
return "dev", ""
4649

4750
if ref_name in release_branches:

0 commit comments

Comments
 (0)