Skip to content

Commit 545b66f

Browse files
authored
Update git-repo-sync.yml
1 parent 70d9695 commit 545b66f

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
1-
# https://github.com/marketplace/actions/git-repo-sync
21
name: Git Repo Sync
32

43
on:
54
- push
65
- delete
76

7+
permissions:
8+
contents: write
9+
810
jobs:
911
sync-bitbucket:
1012
if: github.repository_owner == 'Fabulously-Optimized'
11-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-24.04
14+
timeout-minutes: 30
1215
name: Git Repo Sync - BitBucket
1316
steps:
14-
- uses: actions/checkout@v4
17+
- name: Checkout Repository
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1519
with:
1620
fetch-depth: 0
17-
- uses: wangchucheng/git-repo-sync@v0.1.0
21+
persist-credentials: false
22+
- name: Synchronize code to other Git platforms
23+
uses: jauderho/git-repo-sync@6142c9cd8960dadc57d1190506d6c35ac5cee660 # v0.3.0
1824
with:
1925
target-url: ${{ secrets.BITBUCKET_GIT }}
2026
target-username: ${{ secrets.BITBUCKET_USERNAME }}
21-
target-token: ${{ secrets.BITBUCKET_TOKEN }}
27+
target-token: ${{ secrets.BITBUCKET_API_TOKEN }}

0 commit comments

Comments
 (0)