Skip to content

Commit

Permalink
new outputs format
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Dvoinos authored Nov 1, 2022
1 parent a101df4 commit 02e0e5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ runs:
shell: bash

- id: random-number-generator
run: echo "::set-output name=random-id::$(echo $RANDOM)"
run: echo "random-id=$(echo $RANDOM)" >> $GITHUB_OUTPUT
shell: bash

- id: listing
run: |
echo "Listing of directory ${{ inputs.dir }}"
ls -la ${{ inputs.dir }}
LISTING=$(ls ${{ inputs.dir }})
echo "::set-output name=listing::'$(echo $LISTING)'"
echo "listing='$(echo $LISTING)'" >> $GITHUB_OUTPUT
shell: bash

- run: ${{ github.action_path }}/goodbye.sh ${{ inputs.who-to-greet }}
Expand All @@ -51,4 +51,5 @@ runs:
TIME=$(date)
echo Time is: $TIME
echo "::set-output name=time::$(echo $TIME)"
echo "{time}=$(echo $TIME)" >> $GITHUB_OUTPUT
shell: bash

0 comments on commit 02e0e5f

Please sign in to comment.