Skip to content

Commit 8bdbc49

Browse files
committed
Trying to fix ssh
1 parent 0eea6fd commit 8bdbc49

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/esp82xx-nonos-linklayer.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,18 @@ jobs:
3535
- name: Initialize deploy tools
3636
env:
3737
ESP8266_ARDUINO_CORE_DIR: ${{ github.workspace }}/esp8266
38-
SSH_DEPLOY_SECRET: ${{ secrets.SSH_DEPLOY_KEY }}
39-
SSH_DEPLOY_KEY: ${HOME}/.ssh/deploy_key
38+
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
4039
run: |
4140
mkdir ${HOME}/.ssh
4241
43-
cat "${SSH_DEPLOY_SECRET}" > "${SSH_DEPLOY_KEY}"
44-
chmod 600 "${SSH_DEPLOY_KEY}"
42+
cat "${SSH_DEPLOY_KEY}" > ${HOME}/.ssh/deploy_key
43+
chmod 600 ~/.ssh/deploy_key
4544
46-
echo -ne "Host github.com\n\tHostName github.com\n\tIdentityFile ${SSH_DEPLOY_KEY}\n" > \
45+
echo -ne "Host github.com\n\tHostname github.com\n\tIdentityFile ~/.ssh/deploy_key\n" > \
4746
${HOME}/.ssh/config
4847
49-
git config user.email "[email protected]"
50-
git config user.name "GitHub CI Action"
48+
git config user.name "Maxim Prokhorov (CI)"
49+
git config user.email "[email protected]"
5150
5251
- name: Initialize build environment
5352
run: |
@@ -58,7 +57,7 @@ jobs:
5857
- name: Prepare lwip2 builder
5958
run: |
6059
pushd ${ESP8266_ARDUINO_CORE_DIR}
61-
git remote add deploy ${{ github.repositoryUrl }}
60+
git remote add deploy [email protected]:${{ github.repository }}.git
6261
git switch -c lwip2-rebuild
6362
git submodule update --init -- tools/sdk/lwip2/builder
6463
git submodule update --remote --merge -- tools/sdk/lwip2/builder

0 commit comments

Comments
 (0)