forked from actions-x/commit
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (53 loc) · 1.41 KB
/
test.yaml
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
name: Tests
on:
- push
- workflow_dispatch
jobs:
test_single:
name: Test single checkout
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/[email protected]
- name: Create test file
run: date > test.txt
- name: Commit
uses: ./
with:
message: Create test file for single repos
branch: test-single-repo
force: true
test_multi:
name: Test multi checkout
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/[email protected]
with:
path: repo
- name: Create test file
run: date > repo/test.txt
- name: Commit
uses: ./repo
with:
message: Create test file for multi repos
branch: test-multi-repo
force: true
directory: repo
test_multi_absolute:
name: Test multi checkout (absolute path)
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/[email protected]
with:
path: repo
- name: Create test file
run: date > repo/test.txt
- name: Commit
uses: ./repo
with:
message: Create test file for multi repos (absolute path)
branch: test-multi-repo-absolute
force: true
directory: /home/runner/work/commit/commit/repo