diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1512419..e6ff121 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -55,3 +55,21 @@ jobs: run: | echo "No Changes found: (Not expected)" exit 1 + - name: Generate and unstaged file + run: | + echo "New changes" > unstaged.txt + - name: Test unstaged file has changes + uses: ./ + id: changed_unstaged_files_expected + with: + files: | + unstaged.txt + - name: Display unstaged changed files + if: steps.changed_unstaged_files_expected.outputs.files_changed == 'true' + run: | + echo "Changed files: ${{ steps.changed_unstaged_files_expected.outputs.changed_files }}" + - name: Verify Changes to test/new.txt + if: steps.changed_files_expected.outputs.files_changed != 'true' + run: | + echo "No Changes found: (Not expected)" + exit 1