-
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 944 Bytes
/
Copy pathmirror.yaml
File metadata and controls
41 lines (33 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Mirror to Codeberg
on:
push:
branches:
- main
- master
tags:
- '*'
delete:
workflow_dispatch:
concurrency:
group: mirror-${{ github.ref }}
cancel-in-progress: true
jobs:
mirror:
runs-on: blacksmith-2vcpu-ubuntu-2404
timeout-minutes: 10
steps:
- name: Checkout all history
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Mirror to Codeberg
run: |
set -e
git remote add codeberg https://ThomasNowProductions:${{ secrets.CODEBERG_TOKEN }}@codeberg.org/ThomasNowProductions/BijbelQuiz.git
git push --all codeberg || { echo "Failed to push branches"; exit 1; }
git push --tags codeberg || { echo "Failed to push tags"; exit 1; }
git remote remove codeberg
- name: Verify mirror
run: |
echo "Mirror completed successfully"