Repository navigation
58 lines (51 loc) · 1.59 KB
/
Copy pathclone_code.yml
File metadata and controls
58 lines (51 loc) · 1.59 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Clone Code
on:
workflow_dispatch:
repository_dispatch:
types:
- clone-code
jobs:
clone-code:
strategy:
matrix:
os: [self-hosted-mac, self-hosted-windows, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current code
uses: actions/checkout@v3
with:
ref: ${{ github.event.client_payload.ref }}
- name: Checkout speed_share_extension code
uses: actions/checkout@v3
with:
repository: 'mengyanshou/speed_share_extension'
token: ${{ secrets.GH_PAT }}
ref: 'main'
path: "${{ github.workspace }}/speed_share_extension"
- name: Checkout behavior_api code
uses: actions/checkout@v3
with:
repository: 'mengyanshou/behavior_api'
token: ${{ secrets.GH_PAT }}
ref: 'main'
path: "${{ github.workspace }}/behavior_api"
- name: Checkout user_center_frontend code
uses: actions/checkout@v3
with:
repository: 'mengyanshou/user_center_frontend'
token: ${{ secrets.GH_PAT }}
ref: 'main'
path: "${{ github.workspace }}/user_center_frontend"
- name: Checkout ni CLI code
uses: actions/checkout@v3
with:
repository: 'mengyanshou/ni'
token: ${{ secrets.GH_PAT }}
ref: 'main'
path: "${{ github.workspace }}/ni"
- name: Cache Primes
id: cache-primes
uses: actions/cache@v3
with:
path: ${{ github.workspace }}
key: ${{ runner.os }}-primes