Skip to content

Commit

Permalink
Fix multiline prerequisites output
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Sep 7, 2024
1 parent e0e816f commit b167db4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ jobs:
flags: --recursive
- name: Check recursive prerequisites
run: |
test "${{ steps.recursive-prerequisites.outputs.prerequisites }}" = "preprereq"
test "${{ steps.recursive-prerequisites.outputs.prerequisites }}" = "preprereq1 preprereq2"
echo ${{ steps.recursive-prerequisites.outputs.hash }}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ runs:
working-directory: ${{ inputs.working-directory }}
run: |
hash=$(${GITHUB_ACTION_PATH}/list-make-prerequisites.py ${{ inputs.target }} ${{ inputs.flags }} --hash 2>/dev/null)
prerequisites=$(${GITHUB_ACTION_PATH}/list-make-prerequisites.py ${{ inputs.target }} ${{ inputs.flags }} 2>/dev/null)
prerequisites=$(${GITHUB_ACTION_PATH}/list-make-prerequisites.py ${{ inputs.target }} ${{ inputs.flags }} 2>/dev/null | xargs)
echo "hash=$hash" >> $GITHUB_OUTPUT
echo "prerequisites=$prerequisites" >> $GITHUB_OUTPUT
3 changes: 2 additions & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
test: prereq
cp $< $@

prereq: preprereq
prereq: preprereq1 preprereq2
cp $< $@
cat preprereq2 >> $@
1 change: 0 additions & 1 deletion test/preprereq

This file was deleted.

1 change: 1 addition & 0 deletions test/preprereq1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
preprereq1
1 change: 1 addition & 0 deletions test/preprereq2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
preprereq2

0 comments on commit b167db4

Please sign in to comment.