Skip to content

Commit d8c7dea

Browse files
authored
Create git-repo-sync.yml (#178)
1 parent c62a387 commit d8c7dea

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Git Repo Sync
2+
3+
on:
4+
- push
5+
- delete
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
sync-bitbucket:
12+
if: github.repository_owner == 'Fabulously-Optimized'
13+
runs-on: ubuntu-24.04
14+
timeout-minutes: 30
15+
name: Git Repo Sync - BitBucket
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0
19+
with:
20+
fetch-depth: 0
21+
persist-credentials: false
22+
- name: Synchronize code to other Git platforms
23+
uses: wangchucheng/git-repo-sync@63782025e80e84c48b25a1ee6bb9a22a3bd570d3 # 0.1.0
24+
with:
25+
target-url: ${{ secrets.BITBUCKET_GIT }}
26+
target-username: ${{ secrets.BITBUCKET_USERNAME }}
27+
target-token: ${{ secrets.BITBUCKET_TOKEN }}

0 commit comments

Comments
 (0)