Skip to content

Commit 57e9a42

Browse files
authored
cat
1 parent 59e85de commit 57e9a42

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/expression-functions.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
issues:
8+
types: [opened, labeled]
79

810
jobs:
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

Comments
 (0)