Skip to content

Commit

Permalink
multiline
Browse files Browse the repository at this point in the history
Signed-off-by: M. Fatih Cırıt <[email protected]>
  • Loading branch information
M. Fatih Cırıt committed Jun 25, 2024
1 parent 1b45f15 commit 1d14f73
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/get-modified-packages-docker/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,17 @@ runs:
git fetch origin ${{ inputs.base-ref }}
shell: bash

# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
- name: Get modified files
id: get-modified-files
run: |
modified_files=$(git diff --name-only "origin/${{ inputs.base-ref }}"...HEAD)
echo "modified-files=$modified_files"
echo "modified-files=$modified_files" >> $GITHUB_OUTPUT
{
echo 'modified-files<<EOF'
echo $modified_files
echo EOF
} >> $GITHUB_OUTPUT
shell: bash

- name: printenv
Expand Down

0 comments on commit 1d14f73

Please sign in to comment.