mirror to github
/ test (push) Successful in 4s Details
/ mirror_to_github (push) Successful in 13s Details

This commit is contained in:
Leon van Kammen 2024-04-30 15:19:49 +02:00
parent 82c439696d
commit fc0ae129f3
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,17 @@
on:
push:
branches:
- main
jobs:
mirror_to_github:
runs-on: docker
steps:
- uses: https://code.forgejo.org/actions/checkout@v3
with:
fetch-depth: 0
- run: mkdir ~/.ssh
- run: "echo \"${{ secrets.SSHKEY }}\" > ~/.ssh/id_rsa"
- run: ssh-keyscan github.com >> ~/.ssh/known_hosts # see https://gist.github.com/vikpe/34454d69fe03a9617f2b009cc3ba200b
- run: chmod 600 -R ~/.ssh
- run: git remote add github git@github.com:coderofsalvation/xrsh-apps
- run: git push github main

View File

@ -0,0 +1,7 @@
on: [push]
jobs:
test:
runs-on: docker
steps:
- run: echo All Good
- run: id