File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,18 @@ jobs:
71
71
registry-url : https://registry.npmjs.org/
72
72
cache : npm
73
73
74
- - name : Setup git user
74
+ # https://github.com/actions/checkout/issues/664
75
+ - name : Setup git
75
76
shell : bash
76
77
run : |
77
78
git config user.name ${{ secrets.GH_USER_NAME || github.actor }}
78
- if [ -z "${{ secrets.GH_USER_EMAIL }}" ]; then
79
- git config user.email ${{ github.actor }}@users.noreply.github.com
80
- else
79
+ if [ "${{ secrets.GH_USER_EMAIL }}" ]; then
81
80
git config user.email ${{ secrets.GH_USER_EMAIL }}
81
+ else
82
+ git config user.email ${{ github.actor }}@users.noreply.github.com
83
+ fi
84
+ if [ "${{ secrets.GH_TOKEN }}" ]; then
85
+ git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
82
86
fi
83
87
84
88
# https://github.com/actions/setup-node/issues/411
You can’t perform that action at this time.
0 commit comments