Skip to content

Commit 26e2281

Browse files
committed
ci: update to use prebuilt actions
1 parent cbf25de commit 26e2281

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/mirror-to-tangled.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ jobs:
99
mirror:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Checkout repo
13-
uses: actions/checkout@v4
12+
- name: Checkout
13+
uses: actions/checkout@v5
14+
15+
- name: Start SSH agent and add key
16+
uses: webfactory/ssh-agent@v0.9.1
17+
with:
18+
ssh-private-key: ${{ secrets.TANGLED_SSH_KEY }}
19+
20+
- name: Trust Tangled host key
21+
run: ssh-keyscan tangled.sh >> ~/.ssh/known_hosts
1422

1523
- name: Push to Tangled
16-
env:
17-
SSH_KEY: ${{ secrets.TANGLED_SSH_KEY }}
1824
run: |
19-
mkdir -p ~/.ssh
20-
echo "$SSH_KEY" > ~/.ssh/id_ed25519
21-
chmod 600 ~/.ssh/id_ed25519
2225
git remote add tangled git@tangled.sh:jaydip.me/moocup
2326
git push tangled main

0 commit comments

Comments
 (0)