Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosJoseChaconChavarria authored May 27, 2024
1 parent 49ff170 commit 014e5a0
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/expression-functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,20 @@ jobs:
run: echo ${{ format('Hello {0} {1} {2}', 'Mona', 'the', 'Octocat') }}
- name: Join issue labels
if: github.event_name == 'issues'
run: echo "Issue labels: ${{ join(github.event.issue.labels.*.name, ', ') }}"
run: |
echo "Issue labels: ${{ join(github.event.issue.labels.*.name, ', ') }}"
- name: Convert job context to JSON
run: echo "Job context in JSON: ${{ toJSON(github.job) }}"
run: |
echo "Job context in JSON: ${{ toJSON(github.job) }}"
- name: Parse JSON string
run: echo "Parsed JSON: ${{ fromJSON('{"hello":"world"}').hello }}"
run: |
echo "Parsed JSON: ${{ fromJSON('{"hello":"world"}').hello }}"
- name: Hash files
run: echo "Hash of files: ${{ hashFiles('**/package-lock.json', '**/Gemfile.lock') }}
run: |
echo "Hash of files: ${{ hashFiles('**/package-lock.json', '**/Gemfile.lock') }}"
- name: The job has succeeded
if: ${{ success() }}
run: echo "The job has succeeded."
- name: The job has failed
if: ${{ failure() }}
if: ${{ failure() }}
run: echo "The job has failed."

0 comments on commit 014e5a0

Please sign in to comment.