-
Notifications
You must be signed in to change notification settings - Fork 58
44 lines (42 loc) · 1.24 KB
/
test.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
on: workflow_dispatch
name: "Test action to understand file & directory handling"
jobs:
create_file:
name: "Create file"
runs-on: ubuntu-latest
steps:
- run: echo hello-world > local-name.txt
- run: echo hello-world > local-name-no-ext
- run: echo hello-world > same-name.txt
- run: echo hello-world > same-name-no-ext
- uses: actions/upload-artifact@v1
with:
name: artifact-name
path: local-name.txt
- uses: actions/upload-artifact@v1
with:
name: artifact-name-ext.txt
path: local-name.txt
- uses: actions/upload-artifact@v1
with:
name: artifact-name-2
path: local-name-no-ext
- uses: actions/upload-artifact@v1
with:
name: artifact-name-ext-2.txt
path: local-name-no-ext
- uses: actions/upload-artifact@v1
with:
name: same-name.txt
path: same-name.txt
- uses: actions/upload-artifact@v1
with:
name: same-name-no-ext
path: same-name-no-ext
download_artifacts:
name: "Download artifacts"
runs-on: ubuntu-latest
needs: ["create_file"]
steps:
- uses: actions/download-artifact@v2
- run: ls -lR