File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 22
22
python -m pip install -U pip poetry
23
23
poetry --version
24
24
poetry install
25
- - name : Install pinentry on macos
26
- if : runner.os == 'macOs'
27
- run : |
28
- brew install pinentry
29
25
- name : Run tests and linters
30
26
run : |
31
27
git config --global user.email "action@github.com"
Original file line number Diff line number Diff line change @@ -37,18 +37,18 @@ def tmp_commitizen_project_with_gpg(tmp_commitizen_project):
37
37
f .write (f"Name-Email: { _signer_mail } " + os .linesep )
38
38
f .write ("Expire-Date: 1" + os .linesep )
39
39
40
- cmd .run (
40
+ _key = cmd .run (
41
41
f"gpg --batch --passphrase '' --pinentry-mode loopback --generate-key { _gpg_file } "
42
42
)
43
+ # debug for mac github actions
44
+ if platform .system ().lower () == "darwin" :
45
+ print (f"MAC OS: new key created?\n { _key .out } \n { _key .err } " )
43
46
44
47
_new_key = cmd .run (f"gpg --list-secret-keys { _signer_mail } " )
45
48
_m = re .search (
46
49
rf"[a-zA-Z0-9 \[\]-_]*{ os .linesep } [ ]*([0-9A-Za-z]*){ os .linesep } [{ os .linesep } a-zA-Z0-9 \[\]-_<>@]*" ,
47
50
_new_key .out ,
48
51
)
49
- # debug for mac github actions
50
- if platform .system ().lower () == "darwin" :
51
- print (f"MAC OS: new key created?\n { _new_key .out } \n { _new_key .err } " )
52
52
53
53
if _m :
54
54
_key_id = _m .group (1 )
You can’t perform that action at this time.
0 commit comments