Live video on the AT Protocol
at next 38 lines 1.0 kB view raw
1name: sync-tangled 2 3on: 4 push: 5 6jobs: 7 sync: 8 name: ${{ matrix.name }} 9 runs-on: ubuntu-latest 10 steps: 11 - uses: actions/checkout@v4.1.7 12 with: 13 fetch-depth: 0 14 ref: ${{ github.event.pull_request.head.sha }} 15 - name: sync tangled 16 env: 17 TANGLED_SSH_KEY: ${{ secrets.TANGLED_SSH_KEY }} 18 run: | 19 set -euo pipefail 20 # Turn off strict SSH key checking 21 mkdir -p ~/.ssh 22 echo "Host * 23 StrictHostKeyChecking no 24 UserKnownHostsFile=/dev/null" > ~/.ssh/config 25 26 # Write SSH key to disk 27 echo "$TANGLED_SSH_KEY" > ~/.ssh/tangled_key 28 chmod 600 ~/.ssh/tangled_key 29 30 # Configure SSH to use the key for tangled.sh 31 echo "Host tangled.sh 32 IdentityFile ~/.ssh/tangled_key" >> ~/.ssh/config 33 34 chmod 600 ~/.ssh/config 35 36 git remote add tangled git@tangled.sh:stream.place/streamplace 37 git push -f --all tangled 38 git push -f --tags tangled