Skip to content

Commit df95708

Browse files
author
awstools
committed
chore: merge remote-tracking branch 'origin/master' into master
Refs: https://docs.github.com/en/github/using-git/dealing-with-non-fast-forward-errors
2 parents 38e165a + 10ab6a1 commit df95708

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Diff for: .github/workflows/git-sync.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: git-sync-with-mirror
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
git-sync:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: git-sync
14+
env:
15+
git_sync_source_repo: ${{ secrets.GIT_SYNC_SOURCE_REPO }}
16+
git_sync_destination_repo: ${{ secrets.GIT_SYNC_DESTINATION_REPO }}
17+
if: env.git_sync_source_repo && env.git_sync_destination_repo
18+
uses: wei/git-sync@v3
19+
with:
20+
source_repo: ${{ secrets.GIT_SYNC_SOURCE_REPO }}
21+
source_branch: "master"
22+
destination_repo: ${{ secrets.GIT_SYNC_DESTINATION_REPO }}
23+
destination_branch: "master"
24+
source_ssh_private_key: ${{ secrets.GIT_SYNC_SOURCE_SSH_PRIVATE_KEY }}
25+
destination_ssh_private_key: ${{ secrets.GIT_SYNC_DESTINATION_SSH_PRIVATE_KEY }}

0 commit comments

Comments
 (0)