Skip to content

Commit

Permalink
ci: Add mirror.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake committed Sep 16, 2024
1 parent df2020c commit 913dd6e
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# SPDX-FileCopyrightText: 2024 Shun Sakai
#
# SPDX-License-Identifier: Apache-2.0 OR MIT

name: Mirror to mirror repositories

on:
push:
branches:
- "develop"
- "master"
workflow_dispatch:

jobs:
gitlab:
name: Mirror to GitLab
if: github.repository_owner == 'sorairolake'
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Mirror to GitLab
uses: yesolutions/[email protected]
with:
REMOTE: "https://gitlab.com/sorairolake/sysexits-rs.git"
GIT_USERNAME: sorairolake
GIT_PASSWORD: ${{ secrets.GITLAB_TOKEN }}
PUSH_ALL_REFS: "false"

codeberg:
name: Mirror to Codeberg
if: github.repository_owner == 'sorairolake'
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Mirror to Codeberg
uses: yesolutions/[email protected]
with:
REMOTE: "https://codeberg.org/sorairolake/sysexits-rs.git"
GIT_USERNAME: sorairolake
GIT_PASSWORD: ${{ secrets.CODEBERG_TOKEN }}
PUSH_ALL_REFS: "false"

0 comments on commit 913dd6e

Please sign in to comment.