Skip to content

ci: Use github.actor #4

ci: Use github.actor

ci: Use github.actor #4

Workflow file for this run

# SPDX-FileCopyrightText: 2024 Shun Sakai
#
# SPDX-License-Identifier: CC0-1.0
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/mirror-action@v0.7.0
with:
REMOTE: "https://gitlab.com/sorairolake/japanese-era-dataset.git"
GIT_USERNAME: ${{ github.actor }}
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/mirror-action@v0.7.0
with:
REMOTE: "https://codeberg.org/sorairolake/japanese-era-dataset.git"
GIT_USERNAME: ${{ github.actor }}
GIT_PASSWORD: ${{ secrets.CODEBERG_TOKEN }}
PUSH_ALL_REFS: "false"