Skip to content

Commit

Permalink
Testing new sync action
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAce committed May 16, 2024
1 parent 189f5d3 commit 3b74453
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,23 @@ jobs:
repo-sync:
runs-on: ubuntu-latest
environment: CMT-mirror
# steps:
# - name: Sync to KTH-condmat/CMT
# uses: wei/[email protected]
# with:
# source_repo: "DavidAce/CMT"
# source_branch: "master"
# destination_repo: "https://DavidAce:${{ secrets.CMT_ACCESS_TOKEN }}@github.com/KTH-condmat/CMT.git"
# destination_branch: "main"
steps:
- name: Sync to KTH-condmat/CMT
uses: wei/[email protected]
with:
source_repo: "DavidAce/CMT"
source_branch: "master"
destination_repo: "https://DavidAce:${{ secrets.CMT_ACCESS_TOKEN }}@github.com/KTH-condmat/CMT.git"
destination_branch: "main"
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: repo-sync
uses: repo-sync/github-sync@v2
with:
source_repo: "https://DavidAce:${{ secrets.CMT_ACCESS_TOKEN }}@github.com/DavidAce/CMakeTemplate.git"
source_branch: "master"
destination_repo: "https://DavidAce:${{ secrets.CMT_ACCESS_TOKEN }}@github.com/KTH-condmat/CMT.git"
destination_branch: "main"
github_token: ${{ secrets.CMT_ACCESS_TOKEN }}

0 comments on commit 3b74453

Please sign in to comment.