File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,26 @@ jobs:
54
54
TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
55
55
run : twine upload dist/*
56
56
57
+ - name : configure git with the bot credentials
58
+ env :
59
+ SSH_AUTH_SOCK : /tmp/ssh_agent.sock
60
+ run : |
61
+ mkdir -p ~/.ssh
62
+ echo ${{ secrets.NEXTMVBOT_SIGNING_KEY }} > ~/.ssh/signing.key
63
+ echo ${{ secrets.NEXTMVBOT_SSH_KEY }} > ~/.ssh/commit.key
64
+
65
+ ssh-keyscan github.com >> ~/.ssh/known_hosts
66
+ ssh-agent -a $SSH_AUTH_SOCK > /dev/null
67
+ ssh-add ~/.ssh/commit.key
68
+
69
+ git config --global user.name "nextmv-bot"
70
+ git config --global user.email "tech+gh-nextmv-bot@nextmv.io"
71
+ git config --global url."git@github.com:".insteadOf "https://github.com/"
72
+ git config --global gpg.format ssh
73
+ git config --global user.signingkey ~/.ssh/signing.key
74
+
57
75
- name : commit new version
58
76
run : |
59
- git config --global user.name "Nextmv Bot"
60
- git config --global user.email "bot@nextmv.io"
61
77
git add nextmv/__about__.py
62
- git commit -m "Bump version to $VERSION"
78
+ git commit -am "Bump version to $VERSION"
63
79
git push
You can’t perform that action at this time.
0 commit comments