From d54edd50fd02cb33e2b1f1c962dc33b46a0562c2 Mon Sep 17 00:00:00 2001 From: ange Date: Mon, 18 Nov 2024 10:27:40 +0000 Subject: [PATCH 1/3] feat: mirror job --- .gitea/workflows/mirror.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .gitea/workflows/mirror.yaml diff --git a/.gitea/workflows/mirror.yaml b/.gitea/workflows/mirror.yaml new file mode 100644 index 0000000..116b39c --- /dev/null +++ b/.gitea/workflows/mirror.yaml @@ -0,0 +1,12 @@ +on: push + +jobs: + mirror: + runs-on: debian + steps: + - uses: actions/checkout@v1 + - uses: actions/mirror@v1 + with: + ssh_priv: "${{ secrets.SSH_GH }}" + known_hosts: "github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl" + url: "git@github.com:EpitechPromo2026/G-EIP-700-TLS-7-1-eip-stephane.corbiere.git" -- 2.45.2 From 0f18a0a62cb81533afd4f38b9c270389c7617c67 Mon Sep 17 00:00:00 2001 From: ange Date: Mon, 18 Nov 2024 10:53:21 +0000 Subject: [PATCH 2/3] fix(actions): secret name typo --- .gitea/workflows/mirror.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/mirror.yaml b/.gitea/workflows/mirror.yaml index 116b39c..cf65b7f 100644 --- a/.gitea/workflows/mirror.yaml +++ b/.gitea/workflows/mirror.yaml @@ -7,6 +7,6 @@ jobs: - uses: actions/checkout@v1 - uses: actions/mirror@v1 with: - ssh_priv: "${{ secrets.SSH_GH }}" + ssh_priv: "${{ secrets.SSHGH }}" known_hosts: "github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl" url: "git@github.com:EpitechPromo2026/G-EIP-700-TLS-7-1-eip-stephane.corbiere.git" -- 2.45.2 From 9cd0c612dda6a46d7eb8490c503d5cb4404b320b Mon Sep 17 00:00:00 2001 From: ange Date: Mon, 18 Nov 2024 11:19:37 +0000 Subject: [PATCH 3/3] fix: remove checkout before mirror --- .gitea/workflows/mirror.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitea/workflows/mirror.yaml b/.gitea/workflows/mirror.yaml index cf65b7f..ffe6d6c 100644 --- a/.gitea/workflows/mirror.yaml +++ b/.gitea/workflows/mirror.yaml @@ -4,7 +4,6 @@ jobs: mirror: runs-on: debian steps: - - uses: actions/checkout@v1 - uses: actions/mirror@v1 with: ssh_priv: "${{ secrets.SSHGH }}" -- 2.45.2