forked from NVIDIA/cub
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (42 loc) · 1.43 KB
/
push-to-legacy-repositories.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
on: push
jobs:
push-to-legacy-repositories:
name: Push to legacy repositories
runs-on: ubuntu-latest
steps:
- name: Push `main` to github.com/nvlabs/cub
uses: wei/git-sync@v2
if: github.repository == 'nvidia/cub'
with:
source_repo: "nvidia/cub"
source_branch: "main"
destination_repo: "nvlabs/cub"
destination_branch: "main"
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Push all tags to github.com/nvlabs/cub
uses: wei/git-sync@v2
if: github.repository == 'nvidia/cub'
with:
source_repo: "nvidia/cub"
source_branch: "refs/tags/*"
destination_repo: "nvlabs/cub"
destination_branch: "refs/tags/*"
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Push `main` to github.com/thrust/cub
uses: wei/git-sync@v2
if: github.repository == 'nvidia/cub'
with:
source_repo: "nvidia/cub"
source_branch: "main"
destination_repo: "thrust/cub"
destination_branch: "main"
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Push all tags to github.com/thrust/cub
uses: wei/git-sync@v2
if: github.repository == 'nvidia/cub'
with:
source_repo: "nvidia/cub"
source_branch: "refs/tags/*"
destination_repo: "thrust/cub"
destination_branch: "refs/tags/*"
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}