Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update test #361

Merged
merged 3 commits into from Oct 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Expand Up @@ -144,6 +144,7 @@ jobs:
with:
files: |
README.md
test/**

- name: Commit README changes
if: steps.verify-changed-files.outputs.files_changed == 'true'
Expand Down
47 changes: 24 additions & 23 deletions test/README-inputColumns.md
Expand Up @@ -4,14 +4,15 @@

<!-- AUTO-DOC-INPUT:START - Do not remove or modify this section -->

| INPUT | TYPE | DESCRIPTION |
|-----------|--------|-------------------------------------------------------------------------------------|
| base_sha | string | Specify a base commit SHA<br>used for comparing changes |
| files | string | Check for changes using only<br>this list of files (Defaults<br>to the entire repo) |
| path | string | Specify a relative path under<br>$GITHUB_WORKSPACE to locate the repository<br> |
| separator | string | Split character for array output<br> |
| sha | string | Specify a current commit SHA<br>used for comparing changes |
| token | string | Github token or Repo Scoped<br>Personal Access Token |
| INPUT | TYPE | DESCRIPTION |
|----------------|--------|-------------------------------------------------------------------------------------|
| base_sha | string | Specify a base commit SHA<br>used for comparing changes |
| files | string | Check for changes using only<br>this list of files (Defaults<br>to the entire repo) |
| path | string | Specify a relative path under<br>$GITHUB_WORKSPACE to locate the repository<br> |
| path_separator | string | Path separator |

Check warning

Code scanning / Markdownlint (reported by Codacy)

Expected: 80; Actual: 113

Expected: 80; Actual: 113
| separator | string | Split character for array output<br> |
| sha | string | Specify a current commit SHA<br>used for comparing changes |
| token | string | Github token or Repo Scoped<br>Personal Access Token |

<!-- AUTO-DOC-INPUT:END -->

Expand All @@ -21,20 +22,20 @@

| OUTPUT | TYPE | DESCRIPTION |
|--------------------------------|--------|-----------------------------------------------------------------------------------------|
| added_files | string | List of added files. |
| all_changed_and_modified_files | string | List of all changed files.<br> |
| all_modified_files | string | List of all copied modified<br>and added files. |
| any_changed | string | Return true only when any<br>files provided using the files<br>input have changed. |
| any_deleted | string | Return true only when any<br>files provided using the files<br>input have been deleted. |
| copied_files | string | List of copied files. |
| deleted_files | string | List of deleted files. |
| modified_files | string | List of modified files. |
| only_changed | string | Return true when all files<br>provided using the files input<br>have changed. |
| only_deleted | string | Return true when all files<br>provided using the files input<br>have been deleted. |
| other_deleted_files | string | Return list of deleted files<br>not listed in the files<br>input. |
| renamed_files | string | List of renamed files. |
| type_changed_files | string | List of files that had<br>type changes. |
| unknown_files | string | List of unknown files. |
| unmerged_files | string | List of unmerged files. |
| added_files | string | List of added files. |
| all_changed_and_modified_files | string | List of all changed files.<br> |
| all_modified_files | string | List of all copied modified<br>and added files. |
| any_changed | string | Return true only when any<br>files provided using the files<br>input have changed. |
| any_deleted | string | Return true only when any<br>files provided using the files<br>input have been deleted. |
| copied_files | string | List of copied files. |
| deleted_files | string | List of deleted files. |
| modified_files | string | List of modified files. |
| only_changed | string | Return true when all files<br>provided using the files input<br>have changed. |
| only_deleted | string | Return true when all files<br>provided using the files input<br>have been deleted. |
| other_deleted_files | string | Return list of deleted files<br>not listed in the files<br>input. |
| renamed_files | string | List of renamed files. |
| type_changed_files | string | List of files that had<br>type changes. |
| unknown_files | string | List of unknown files. |
| unmerged_files | string | List of unmerged files. |

<!-- AUTO-DOC-OUTPUT:END -->
45 changes: 23 additions & 22 deletions test/README-outputColumns.md
Expand Up @@ -4,14 +4,15 @@

<!-- AUTO-DOC-INPUT:START - Do not remove or modify this section -->

| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|-----------|--------|----------|------------------------------------|-------------------------------------------------------------------------------------|
| base_sha | string | false | | Specify a base commit SHA<br>used for comparing changes |
| files | string | false | `"README.md"`<br>`"README.md"`<br> | Check for changes using only<br>this list of files (Defaults<br>to the entire repo) |
| path | string | false | | Specify a relative path under<br>$GITHUB_WORKSPACE to locate the repository<br> |
| separator | string | true | `"\|"` | Split character for array output<br> |
| sha | string | true | `"${{ github.sha }}"` | Specify a current commit SHA<br>used for comparing changes |
| token | string | true | `"${{ github.token }}"` | Github token or Repo Scoped<br>Personal Access Token |
| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|----------------|--------|----------|------------------------------------|-------------------------------------------------------------------------------------|
| base_sha | string | false | | Specify a base commit SHA<br>used for comparing changes |
| files | string | false | `"README.md"`<br>`"README.md"`<br> | Check for changes using only<br>this list of files (Defaults<br>to the entire repo) |
| path | string | false | | Specify a relative path under<br>$GITHUB_WORKSPACE to locate the repository<br> |
| path_separator | string | false | `"\n"` | Path separator |

Check warning

Code scanning / Markdownlint (reported by Codacy)

Expected: 80; Actual: 161

Expected: 80; Actual: 161
| separator | string | true | `"\|"` | Split character for array output<br> |
| sha | string | true | `"${{ github.sha }}"` | Specify a current commit SHA<br>used for comparing changes |
| token | string | true | `"${{ github.token }}"` | Github token or Repo Scoped<br>Personal Access Token |

<!-- AUTO-DOC-INPUT:END -->

Expand All @@ -21,20 +22,20 @@

| OUTPUT | TYPE |
|--------------------------------|--------|
| added_files | string |
| added_files | string |
| all_changed_and_modified_files | string |
| all_modified_files | string |
| any_changed | string |
| any_deleted | string |
| copied_files | string |
| deleted_files | string |
| modified_files | string |
| only_changed | string |
| only_deleted | string |
| other_deleted_files | string |
| renamed_files | string |
| type_changed_files | string |
| unknown_files | string |
| unmerged_files | string |
| all_modified_files | string |
| any_changed | string |
| any_deleted | string |
| copied_files | string |
| deleted_files | string |
| modified_files | string |
| only_changed | string |
| only_deleted | string |
| other_deleted_files | string |
| renamed_files | string |
| type_changed_files | string |
| unknown_files | string |
| unmerged_files | string |

<!-- AUTO-DOC-OUTPUT:END -->
44 changes: 22 additions & 22 deletions test/README.md
Expand Up @@ -6,13 +6,13 @@

| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|----------------|--------|----------|------------------------------------|-------------------------------------------------------------------------------------|
| base_sha | string | false | | Specify a base commit SHA<br>used for comparing changes |
| files | string | false | `"README.md"`<br>`"README.md"`<br> | Check for changes using only<br>this list of files (Defaults<br>to the entire repo) |
| path | string | false | | Specify a relative path under<br>$GITHUB_WORKSPACE to locate the repository<br> |
| path_separator | string | false | `"\n"` | Path separator |
| separator | string | true | `"\|"` | Split character for array output<br> |
| sha | string | true | `"${{ github.sha }}"` | Specify a current commit SHA<br>used for comparing changes |
| token | string | true | `"${{ github.token }}"` | Github token or Repo Scoped<br>Personal Access Token |
| base_sha | string | false | | Specify a base commit SHA<br>used for comparing changes |
| files | string | false | `"README.md"`<br>`"README.md"`<br> | Check for changes using only<br>this list of files (Defaults<br>to the entire repo) |
| path | string | false | | Specify a relative path under<br>$GITHUB_WORKSPACE to locate the repository<br> |
| path_separator | string | false | `"\n"` | Path separator |
| separator | string | true | `"\|"` | Split character for array output<br> |
| sha | string | true | `"${{ github.sha }}"` | Specify a current commit SHA<br>used for comparing changes |
| token | string | true | `"${{ github.token }}"` | Github token or Repo Scoped<br>Personal Access Token |

<!-- AUTO-DOC-INPUT:END -->

Expand All @@ -22,20 +22,20 @@

| OUTPUT | TYPE | DESCRIPTION |
|--------------------------------|--------|-----------------------------------------------------------------------------------------|
| added_files | string | List of added files. |
| all_changed_and_modified_files | string | List of all changed files.<br> |
| all_modified_files | string | List of all copied modified<br>and added files. |
| any_changed | string | Return true only when any<br>files provided using the files<br>input have changed. |
| any_deleted | string | Return true only when any<br>files provided using the files<br>input have been deleted. |
| copied_files | string | List of copied files. |
| deleted_files | string | List of deleted files. |
| modified_files | string | List of modified files. |
| only_changed | string | Return true when all files<br>provided using the files input<br>have changed. |
| only_deleted | string | Return true when all files<br>provided using the files input<br>have been deleted. |
| other_deleted_files | string | Return list of deleted files<br>not listed in the files<br>input. |
| renamed_files | string | List of renamed files. |
| type_changed_files | string | List of files that had<br>type changes. |
| unknown_files | string | List of unknown files. |
| unmerged_files | string | List of unmerged files. |
| added_files | string | List of added files. |
| all_changed_and_modified_files | string | List of all changed files.<br> |
| all_modified_files | string | List of all copied modified<br>and added files. |
| any_changed | string | Return true only when any<br>files provided using the files<br>input have changed. |
| any_deleted | string | Return true only when any<br>files provided using the files<br>input have been deleted. |
| copied_files | string | List of copied files. |
| deleted_files | string | List of deleted files. |
| modified_files | string | List of modified files. |
| only_changed | string | Return true when all files<br>provided using the files input<br>have changed. |
| only_deleted | string | Return true when all files<br>provided using the files input<br>have been deleted. |
| other_deleted_files | string | Return list of deleted files<br>not listed in the files<br>input. |
| renamed_files | string | List of renamed files. |
| type_changed_files | string | List of files that had<br>type changes. |
| unknown_files | string | List of unknown files. |
| unmerged_files | string | List of unmerged files. |

<!-- AUTO-DOC-OUTPUT:END -->