Skip to content

Commit 2679e66

Browse files
authored
Create mirror.yml for repository mirroring
Add a GitHub Actions workflow to mirror the repository to Codeberg.
1 parent 59ff2b3 commit 2679e66

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/mirror.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This is a basic workflow to help you get started with Actions
2+
name: "Mirror To Codeberg"
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the master branch
5+
on:
6+
push:
7+
branches:
8+
- '**'
9+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
10+
jobs:
11+
# This workflow contains a single job called "build"
12+
build:
13+
# The type of runner that the job will run on
14+
runs-on: ubuntu-latest
15+
# Steps represent a sequence of tasks that will be executed as part of the job
16+
steps:
17+
- uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
- name: mirror-repository
21+
uses: spyoungtech/mirror-action@master
22+
with:
23+
REMOTE: git@gitlab.com:spyoungtech/mirror-action.git
24+
GIT_SSH_PRIVATE_KEY: ${{ secrets.GIT_SSH_KEY }}
25+
GIT_SSH_KNOWN_HOSTS: ${{ secrets.GIT_SSH_KNOWN_HOSTS }}

0 commit comments

Comments
 (0)