diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2a97fce..cee3c36 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,7 +58,9 @@ jobs: printf '%s\n' "323442" "424" >> test/new.txt printf '%s\n' "323442" "424" >> test/new1.txt printf '%s\n' "323442" "424" >> test/new2.txt - - name: Test test/new.txt file has changes + printf '%s\n' "323442" "424" >> "test/\$(whoami).txt" + shell: bash + - name: Test test/new*.txt file has changes uses: ./ id: changed_files_expected with: @@ -114,6 +116,7 @@ jobs: !test/new.txt !test/new1.txt !test/new2.txt + !test/$(whoami).txt !unstaged.txt - name: Verify Changes to unstaged.txt are ignored if: steps.changed_unstaged_files_not_expected.outputs.files_changed != 'false' @@ -128,6 +131,7 @@ jobs: !test/new.txt !test/new1.txt !test/new2.txt + !test/$(whoami).txt unstaged.txt - name: Verify Changes to unstaged.txt are ignored if: steps.changed_unstaged2_files_expected.outputs.files_changed != 'true' diff --git a/action.yml b/action.yml index e32d08a..720b999 100644 --- a/action.yml +++ b/action.yml @@ -51,6 +51,7 @@ runs: separator: "|" match-directories: false match-gitignore-files: ${{ inputs.match-gitignore-files }} + escape-paths: ${{ inputs.safe_output }} - run: | bash $GITHUB_ACTION_PATH/entrypoint.sh id: verify-changed-files diff --git a/test/$(whoami).txt b/test/$(whoami).txt new file mode 100644 index 0000000..9daeafb --- /dev/null +++ b/test/$(whoami).txt @@ -0,0 +1 @@ +test