keystone-cli 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/templates/basics/basic-shell.yaml +2 -0
- package/src/templates/features/artifact-example.yaml +9 -8
- package/src/templates/features/script-example.yaml +1 -0
- package/src/templates/patterns/composition-child.yaml +1 -1
- package/src/templates/patterns/composition-parent.yaml +5 -2
package/package.json
CHANGED
|
@@ -12,10 +12,12 @@ outputs:
|
|
|
12
12
|
steps:
|
|
13
13
|
- id: create_message
|
|
14
14
|
type: shell
|
|
15
|
+
allowInsecure: true
|
|
15
16
|
run: echo "${{ escape(inputs.greeting) }}, ${{ escape(inputs.name) }}!"
|
|
16
17
|
transform: "stdout.trim()"
|
|
17
18
|
|
|
18
19
|
- id: print_message
|
|
19
20
|
type: shell
|
|
20
21
|
needs: [create_message]
|
|
22
|
+
allowInsecure: true
|
|
21
23
|
run: echo "Generated message - ${{ escape(steps.create_message.output) }}"
|
|
@@ -7,27 +7,27 @@ steps:
|
|
|
7
7
|
type: shell
|
|
8
8
|
allowInsecure: true
|
|
9
9
|
run: |
|
|
10
|
-
mkdir -p
|
|
11
|
-
echo "Hello from step 1" >
|
|
12
|
-
echo "Hello from step 1 (second file)" >
|
|
10
|
+
mkdir -p src/templates/features/test-output
|
|
11
|
+
echo "Hello from step 1" > src/templates/features/test-output/file1.txt
|
|
12
|
+
echo "Hello from step 1 (second file)" > src/templates/features/test-output/file2.txt
|
|
13
13
|
|
|
14
14
|
- id: upload_files
|
|
15
15
|
type: artifact
|
|
16
16
|
op: upload
|
|
17
17
|
name: build-outputs
|
|
18
|
-
paths: ["
|
|
18
|
+
paths: ["test-output/*.txt"]
|
|
19
19
|
needs: [create_content]
|
|
20
20
|
|
|
21
21
|
- id: clean_local
|
|
22
22
|
type: shell
|
|
23
23
|
needs: [upload_files]
|
|
24
|
-
run: rm -rf
|
|
24
|
+
run: rm -rf src/templates/features/test-output
|
|
25
25
|
|
|
26
26
|
- id: download_files
|
|
27
27
|
type: artifact
|
|
28
28
|
op: download
|
|
29
29
|
name: build-outputs
|
|
30
|
-
path:
|
|
30
|
+
path: src/templates/features/downloaded
|
|
31
31
|
needs: [clean_local]
|
|
32
32
|
|
|
33
33
|
- id: verify
|
|
@@ -35,5 +35,6 @@ steps:
|
|
|
35
35
|
needs: [download_files]
|
|
36
36
|
allowInsecure: true
|
|
37
37
|
run: |
|
|
38
|
-
ls -R
|
|
39
|
-
cat
|
|
38
|
+
ls -R src/templates/features/downloaded
|
|
39
|
+
cat src/templates/features/downloaded/file1.txt
|
|
40
|
+
rm -rf src/templates/features/downloaded
|
|
@@ -5,11 +5,14 @@ description: "A parent workflow that calls a child workflow"
|
|
|
5
5
|
steps:
|
|
6
6
|
- id: run_child
|
|
7
7
|
type: workflow
|
|
8
|
-
path: "
|
|
8
|
+
path: "./composition-child.yaml"
|
|
9
9
|
inputs:
|
|
10
10
|
name: "Keystone User"
|
|
11
|
+
outputMapping:
|
|
12
|
+
result: result
|
|
11
13
|
|
|
12
14
|
- id: print_result
|
|
13
15
|
type: shell
|
|
14
16
|
needs: [run_child]
|
|
15
|
-
|
|
17
|
+
allowInsecure: true
|
|
18
|
+
run: echo "Child workflow result - ${{ escape(steps.run_child.outputs.result) }}"
|