Skip to content

Commit 0715cd5

Browse files
author
Tomasz Żyjewski
committed
workflows: fix usage of SSH_KEY_GITEA secret
Signed-off-by: Tomasz Żyjewski <tomasz.zyjewski@3mdeb.com>
1 parent 22502d5 commit 0715cd5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
SSH_KEY: ${{secrets.SSH_KEY}}
3232
SSH_KEY_GITEA: ${{secrets.SSH_KEY_GITEA}}
3333
run: |
34-
echo -e ${SSH_KEY} | sed 's/^ *//' > ~/.ssh/dts-ci-key
34+
echo -e ${SSH_KEY} > ~/.ssh/dts-ci-key
3535
chmod 600 ~/.ssh/dts-ci-key
36-
echo ${SSH_KEY_GITEA} | sed 's/^ *//' > ~/.ssh/gitea-key
36+
echo -e ${SSH_KEY_GITEA} > ~/.ssh/gitea-key
3737
chmod 600 ~/.ssh/gitea-key
3838
cp ~/.ssh/config ~/.ssh/config-old
3939
echo -e "\n

.github/workflows/develop.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
SSH_KEY: ${{secrets.SSH_KEY}}
3232
SSH_KEY_GITEA: ${{secrets.SSH_KEY_GITEA}}
3333
run: |
34-
echo -e ${SSH_KEY} | sed 's/^ *//' > ~/.ssh/dts-ci-key
34+
echo -e ${SSH_KEY} > ~/.ssh/dts-ci-key
3535
chmod 600 ~/.ssh/dts-ci-key
36-
echo ${SSH_KEY_GITEA} | sed 's/^ *//' > ~/.ssh/gitea-key
36+
echo -e ${SSH_KEY_GITEA} > ~/.ssh/gitea-key
3737
chmod 600 ~/.ssh/gitea-key
3838
cp ~/.ssh/config ~/.ssh/config-old
3939
echo -e "\n

0 commit comments

Comments
 (0)