Skip to content

Commit 353c0c6

Browse files
authored
Correct Git Prompt regexp. (#348)
* Correct Git Prompt regexp. * Enable Git Prompt on Azure Pipeline.
1 parent 88650b7 commit 353c0c6

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

azure-pipelines.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ jobs:
1010
inputs:
1111
versionSpec: "3.8"
1212
displayName: Install Python.
13+
- script: |
14+
curl -sSL "https://raw.githubusercontent.com\
15+
/python-poetry/poetry/master/get-poetry.py" | python
16+
echo '##vso[task.prependpath]$(HOME)/.poetry/bin'
17+
displayName: Install Poetry.
1318
- task: NodeTool@0
1419
inputs:
1520
versionSpec: "10.x"
@@ -18,15 +23,10 @@ jobs:
1823
curl https://install.goreleaser.com/github.com/ValeLint/vale.sh | sh
1924
echo '##vso[task.prependpath]$(system.defaultWorkingDirectory)/bin'
2025
displayName: Install Vale.
21-
- script: |
22-
curl -sSL "https://raw.githubusercontent.com\
23-
/python-poetry/poetry/master/get-poetry.py" | python
24-
echo '##vso[task.prependpath]$(HOME)/.poetry/bin'
25-
displayName: Install poetry.
2626
- script: poetry install
27-
displayName: Install python dependencies.
27+
displayName: Install Python dependencies.
2828
- script: npm install
29-
displayName: Install javascript dependencies.
29+
displayName: Install JS dependencies.
3030
- script: poetry run invoke lint
3131
displayName: Run linters.
3232
- script: poetry run invoke build
@@ -39,4 +39,5 @@ jobs:
3939
GIT_COMMITTER_NAME: $(git.name)
4040
GIT_COMMITTER_EMAIL: $(git.email)
4141
GIT_COMMITTER_PASSWORD: $(git.password)
42+
GIT_TERMINAL_PROMPT: 1
4243
displayName: Run deploy.

tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ def build(c):
2626
@task
2727
def deploy(c):
2828
command = "poetry run ghp-import --cname dry-python.org --branch master --push site"
29-
enter_username = Responder(r"Username: ", environ["GIT_COMMITTER_NAME"])
30-
enter_password = Responder(r"Password: ", environ["GIT_COMMITTER_PASSWORD"])
29+
enter_username = Responder(r"Username for .*:", environ["GIT_COMMITTER_NAME"])
30+
enter_password = Responder(r"Password for .*:", environ["GIT_COMMITTER_PASSWORD"])
3131
c.run(command, pty=True, watchers=[enter_username, enter_password])

0 commit comments

Comments
 (0)