-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (28 loc) · 986 Bytes
/
mirror.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
name: Mirror
on: ["push", "delete"]
jobs:
igem-gitlab:
name: iGEM GitLab
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # all branches and tags
- name: Mirror repository
uses: pixta-dev/repository-mirroring-action@674e65a7d483ca28dafaacba0d07351bdcc8bd75
with:
target_repo_url: git@gitlab.igem.org:jcxldn/City-of-London-UK_hardware.git
ssh_private_key: ${{ secrets.GITLAB_SSH_KEY }}
merge:
name: Merge
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Trigger Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.MERGE_PAT }}
repository: genoswitch/software-judging
event-type: merge_repo
client-payload: '{"job": "merge-v2", "repo": "hardware", "branch": "main", "path": "hardware/hardware"}'