-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (30 loc) · 961 Bytes
/
Copy pathsync.yml
File metadata and controls
30 lines (30 loc) · 961 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
jobs:
sync:
permissions:
contents: read
runs-on: ubuntu-slim
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Push
uses: nick-fields/retry@v4
with:
command: |
git config user.name "Theodore Chang"
git config user.email "tlcfem@gmail.com"
git remote add gitlab "https://oauth2:${{ secrets.GITLAB_SYNC }}@gitlab.com/${{ github.repository }}.git"
git push gitlab "+HEAD:refs/heads/${{ github.ref_name }}" --follow-tags
git remote add codeberg "https://tlcfem:${{ secrets.CODEBERG_SYNC }}@codeberg.org/${{ github.repository }}.git"
git push codeberg "+HEAD:refs/heads/${{ github.ref_name }}" --follow-tags
max_attempts: 3
retry_on: error
timeout_minutes: 5
name: Sync
'on':
push:
branches:
- dev
- master
workflow_dispatch: null