-
Notifications
You must be signed in to change notification settings - Fork 178
41 lines (37 loc) · 1.11 KB
/
verify-on-ubuntu-user-cache.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
on:
push:
pull_request_target:
branches: [master]
name: Tests / test-user-mirror (cached)
jobs:
run:
name: Run
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v1
- name: Get Time
id: get-time
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d%H%M%S")"
shell: bash
- name: Cache src repos
uses: actions/cache@v1
id: cache
with:
path: ${{ github.workspace }}/hub-mirror-cache
key: ${{ runner.os }}-hub-repos-cache-${{ steps.get-time.outputs.date }}
restore-keys: ${{ runner.os }}-hub-repos-cache
- name: Mirror Github to Gitee with white list and cache
uses: ./.
with:
src: github/Yikun
dst: gitee/yikunkero
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
cache_path: /github/workspace/hub-mirror-cache
white_list: 'hub-mirror-action, hexo-migrator-github-issue'
force_update: true
- name: Print cache path
run: |
ls -la ${{ github.workspace }}/hub-mirror-cache