Skip to content

Commit 6cfc11e

Browse files
committed
ci: add mirror action
1 parent 7ba88f7 commit 6cfc11e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/mirror.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Sync Mirror
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
schedule:
11+
- cron: '0 0 * * *' # at the end of the day
12+
13+
14+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15+
# However, do NOT cancel in-progress runs as we want to allow these mirror deployments to complete.
16+
concurrency:
17+
group: 'mirror'
18+
cancel-in-progress: false
19+
20+
jobs:
21+
codeberg:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
fetch-depth: '0'
27+
- uses: pixta-dev/repository-mirroring-action@v1
28+
with:
29+
target_repo_url: "[email protected]:asi-wroclaw/19.sesja.linuksowa.git"
30+
ssh_private_key: ${{ secrets.CODEBERG_SSH_KEY }}

0 commit comments

Comments
 (0)