From 3e09e5786052ca931ebace464de4659921c700c1 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Tue, 30 Apr 2024 15:53:45 +0200 Subject: [PATCH] mirror to github+ --- .forgejo/workflows/mirror_to_github.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.forgejo/workflows/mirror_to_github.yaml b/.forgejo/workflows/mirror_to_github.yaml index 63e0db2..a9e1fa8 100644 --- a/.forgejo/workflows/mirror_to_github.yaml +++ b/.forgejo/workflows/mirror_to_github.yaml @@ -10,8 +10,13 @@ jobs: with: fetch-depth: 0 - run: mkdir ~/.ssh + - run: "echo \"${{ secrets.SSHKEY_APPS }}\" > ~/.ssh/id_rsa_apps" - 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 + - run: git clone git@github.com:coderofsalvation/xrsh # now push empty commit to deploy website + - run: cd xrsh + - run: git commit --allow-empty -m "website deploy triggered via xrsh-apps repo commit" + - run: git push origin main