-
Notifications
You must be signed in to change notification settings - Fork 2
83 lines (82 loc) · 2.33 KB
/
ci.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: assets-sync-ci
on:
pull_request:
branches: master
push:
branches: master
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: prepare test data
run: |
mkdir -p root/aaa
echo "Test file" > root/test.txt
echo "File in directory" > root/aaa/test.txt
- name: sync test
uses: ./
with:
repos: |
at-wat/assets-sync-action
git_user: Atsushi Watanabe
git_email: [email protected]
github_token: ${{ secrets.GITHUB_TOKEN }}
dryrun: true
- name: sync test with exclude_paths option
uses: ./
with:
exclude_paths: |
aaa/*.txt
repos: |
at-wat/assets-sync-action
git_user: Atsushi Watanabe
git_email: [email protected]
github_token: ${{ secrets.GITHUB_TOKEN }}
dryrun: true
- name: sync test with rm option
uses: ./
with:
repos: |
at-wat/assets-sync-action
rm: README.md
git_user: Atsushi Watanabe
git_email: [email protected]
github_token: ${{ secrets.GITHUB_TOKEN }}
dryrun: true
- name: sync test with rm option (non-existent target)
uses: ./
with:
repos: |
at-wat/assets-sync-action
rm: README12345.md
git_user: Atsushi Watanabe
git_email: [email protected]
github_token: ${{ secrets.GITHUB_TOKEN }}
dryrun: true
- name: sync test with branch option
uses: ./
with:
repos: |
at-wat/assets-sync-action
git_user: Atsushi Watanabe
git_email: [email protected]
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: sync-test-assets-%v
dryrun: true
- name: prepare another test data
run: |
rm -rf root
mkdir -p root2
echo "Test file 2" > root2/test.txt
- name: sync test with root_dir option
uses: ./
with:
repos: |
at-wat/assets-sync-action
root_dir: root2
git_user: Atsushi Watanabe
git_email: [email protected]
github_token: ${{ secrets.GITHUB_TOKEN }}
dryrun: true