Skip to content

Commit

Permalink
chore: update test (#362)
Browse files Browse the repository at this point in the history
* chore: update test

* Create $(whoami).txt

* Update test.yml

* Update test.yml

* Update test.yml

* Update test.yml

* Update action.yml

* Update test.yml
  • Loading branch information
jackton1 committed Jan 4, 2024
1 parent 0a07b6e commit b742fc9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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'
Expand All @@ -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'
Expand Down
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions test/$(whoami).txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test

0 comments on commit b742fc9

Please sign in to comment.