-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (48 loc) · 1.66 KB
/
debug.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Debug
on:
workflow_dispatch:
jobs:
upload:
runs-on: ubuntu-18.04
steps:
- name: Make nested files
run: |
mkdir -p ./level-1/level-2/level-3
touch ./level-1/level-2/level-3/test-1.txt
touch ./level-1/level-2/level-3/test-2.txt
echo test-1001 >> ./level-1/level-2/level-3/test-1.txt
echo test-1002 >> ./level-1/level-2/level-3/test-2.txt
ls -laR
cat ./level-1/level-2/level-3/test-1.txt
cat ./level-1/level-2/level-3/test-2.txt
- name: Upload k8s overlay
uses: actions/upload-artifact@v2
with:
name: k8s-overlay
path: ./level-1/level-2/level-3/test-1.txt
test-download:
runs-on: ubuntu-18.04
needs: upload
steps:
- name: Make nested files
run: |
mkdir -p ./level-1/level-2/level-3
touch ./level-1/level-2/level-3/test-1.txt
touch ./level-1/level-2/level-3/test-2.txt
echo test-2001 >> ./level-1/level-2/level-3/test-1.txt
echo test-2002 >> ./level-1/level-2/level-3/test-2.txt
ls -laR
cat ./level-1/level-2/level-3/test-1.txt
cat ./level-1/level-2/level-3/test-2.txt
- name: Delete original k8s overlay to prevent download collision
run: rm ./level-1/level-2/level-3/test-1.txt
- name: Download k8s overlay
uses: actions/download-artifact@v3
with:
name: k8s-overlay
path: ./level-1/level-2/level-3
- name: Test content
run: |
ls -laR
cat ./level-1/level-2/level-3/test-1.txt
cat ./level-1/level-2/level-3/test-2.txt