diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1b754d59..292a3743 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,9 +30,9 @@ jobs: echo $file done - name: Run step when README.md changes - if: contains(${{ steps.changed-files.outputs.modified_files }}, "README.md") + if: contains(steps.changed-files.outputs.modified_files, 'README.md') run: | - echo "Your README.md has been modified." + echo "Your README.md has been modified ${{ steps.changed-files.outputs.modified_files }}." - name: Run changed-files with comma separator if: github.event_name == 'pull_request' id: changed-files-comma diff --git a/action.yml b/action.yml index 32f7f5c4..4a9b1536 100644 --- a/action.yml +++ b/action.yml @@ -63,7 +63,7 @@ runs: CHANGED=$(git diff --diff-filter=T --name-only "$HEAD_SHA" | tr "\n" "${{ inputs.separator }}" | sed -E 's/(${{ inputs.separator }})$//') UNMERGED=$(git diff --diff-filter=U --name-only "$HEAD_SHA" | tr "\n" "${{ inputs.separator }}" | sed -E 's/(${{ inputs.separator }})$//') UNKNOWN=$(git diff --diff-filter=X --name-only "$HEAD_SHA" | tr "\n" "${{ inputs.separator }}" | sed -E 's/(${{ inputs.separator }})$//') - ALL_CHANGED=$(git diff --diff-filter='*' --name-only "$HEAD_SHA" | tr "\n" "${{ inputs.separator }}" | sed -E 's/(${{ inputs.separator }})$//') + ALL_CHANGED=$(git diff --diff-filter='*ACDMRTUX' --name-only "$HEAD_SHA" | tr "\n" "${{ inputs.separator }}" | sed -E 's/(${{ inputs.separator }})$//') echo "Getting diff..." echo "::set-output name=added_files::$ADDED"