Skip to content

Commit ccc16ac

Browse files
expression function
1 parent 474ce44 commit ccc16ac

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/expression-functions.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ jobs:
2121
- name: Format and echo string
2222
run: echo ${{ format('Hello {0} {1} {2}', 'Mona', 'the', 'Octocat') }}
2323
- name: Convert job context to JSON
24-
run: echo "Job context in JSON: ${{ toJSON(github.job) }}"
24+
run: "echo \"Job context in JSON: ${{ toJSON(github.job) }}"
2525
- name: Parse JSON string
26-
run: echo "Parsed JSON: ${{ fromJSON('{"hello":"world"}').hello }}"
26+
run: "echo \"Parsed JSON: ${{ fromJSON('{\"hello\":"\world\"}').hello }}""
2727
- name: Hash files
28-
run: echo "Hash of files: ${{ hashFiles('**/package-lock.json', '**/Gemfile.lock') }}
28+
run: "echo \"Hash of files: ${{ hashFiles('**/package-lock.json', '**/Gemfile.lock') }}\""
2929
- name: The job has succeeded
3030
if: ${{ success() }}
31+
run: echo: "success:"
3132
- name: The job has failed
32-
if: ${{ failure() }}
33+
if: ${{ failure() }}
34+
run: echo: "failure!"

0 commit comments

Comments
 (0)