44 push :
55 branches :
66 - main
7+ issues :
8+ types : [opened, labeled]
79
810jobs :
911 expression-functions :
@@ -19,16 +21,16 @@ jobs:
1921 if : endsWith('Hello world', 'ld')
2022 run : echo "The string ends with 'ld'."
2123 - name : Format and echo string
22- run : echo ${{ format('Hello {0} {1} {2}', 'Mona', 'the', 'Octocat') }}
24+ run : cat ${{ format('Hello {0} {1} {2}', 'Mona', 'the', 'Octocat') }}
2325 - name : Join issue labels
2426 if : github.event_name == 'issues'
25- run : echo "Issue labels: ${{ join(github.event.issue.labels.*.name, ', ') }}"
27+ run : cat "Issue labels: ${{ join(github.event.issue.labels.*.name, ', ') }}"
2628 - name : Convert job context to JSON
27- run : echo "Job context in JSON: ${{ toJSON(github.job) }}"
29+ run : cat "Job context in JSON: ${{ toJSON(github.job) }}"
2830 - name : Parse JSON string
29- run : echo "Parsed JSON: ${{ fromJSON('{"hello":"world"}').hello }}"
31+ run : cat "Parsed JSON: ${{ fromJSON('{"hello":"world"}').hello }}"
3032 - name : Hash files
31- run : echo "Hash of files: ${{ hashFiles('**/package-lock.json', '**/Gemfile.lock') }}
33+ run : cat "Hash of files: ${{ hashFiles('**/package-lock.json', '**/Gemfile.lock') }}
3234 - name : The job has succeeded
3335 if : ${{ success() }}
3436 - name : The job has failed
0 commit comments