Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Oct 1, 2023
1 parent 6272830 commit 6f14baa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ jobs:
id: deleted_file_test

- name: Display deleted file test result
if: steps.deleted_file_test.outputs.files_changed == 'true'
if: "contains(steps.deleted_file_test.outputs.changed_files, 'test/new.txt')"
run: |
echo "Deletion detected: ${{ steps.deleted_file_test.outputs.changed_files }}"
- name: Verify Deletion of test/new.txt
if: steps.deleted_file_test.outputs.files_changed != 'true'
if: "!contains(steps.deleted_file_test.outputs.changed_files, 'test/new.txt')"
run: |
echo "No Deletion detected: (Not expected)"
exit 1

0 comments on commit 6f14baa

Please sign in to comment.