Skip to content

Commit

Permalink
✅ test(daily-transfer.yml): test setup ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
M0rtzz committed Dec 29, 2024
1 parent 1855160 commit a14283a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/daily-transfer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ jobs:
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Set up SSH
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Setup SSH
run: |
mkdir ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H ${{ secrets.CLOUD }} >> ~/.ssh/known_hosts
- name: Run transfer script
run: |
chmod +x ./transfer.sh
ssh-keygen -R ${{ secrets.CLOUD }} && CLOUD=${{ secrets.CLOUD }} bash ./transfer.sh
CLOUD=${{ secrets.CLOUD }} bash ./transfer.sh

0 comments on commit a14283a

Please sign in to comment.