Skip to content

Commit

Permalink
Backup: Attempt to fix SSH
Browse files Browse the repository at this point in the history
  • Loading branch information
thearchivalone committed Nov 22, 2024
1 parent 56b5f91 commit 7afa7ad
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/github-action-mirror-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,19 @@ jobs:
env
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KEY_PRIVATE }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
chmod 700 ~/.ssh/id_ed25519
echo "${{ secrets.SSH_KEY_PUBLIC }}" > ~/.ssh/id_ed25519.pub
echo "${{ secrets.CODEBERG_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
ssh-copy-id -i ~/.ssh/id_ed25519.pub [email protected]
ssh -T [email protected]
- name: Sync up to Codeberg
id: sync
uses: yesolutions/mirror-action@master
with:
REMOTE: '[email protected]:thearchivalone/BRS-PSP-Research-Initiative.git'
GIT_SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY_PRIVATE }}
GIT_SSH_NO_VERIFY_HOST: "true"
#GIT_SSH_KNOWN_HOSTS: ${{ secrets.CODEBERG_KNOWN_HOSTS }}

beanstalk:
runs-on: ubuntu-24.04
Expand Down Expand Up @@ -134,7 +139,6 @@ jobs:
- name: Setup secure connection
id: secure
run: |
git pull origin main
env
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KEY_PRIVATE }}" > ~/.ssh/id_ed25519
Expand Down

0 comments on commit 7afa7ad

Please sign in to comment.