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

Correct version in examples. #1060

Merged
merged 1 commit into from Mar 29, 2023
Merged
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
46 changes: 23 additions & 23 deletions README.md
Expand Up @@ -95,7 +95,7 @@ jobs:
# Example 1
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35

# To compare changes between the current commit and the last pushed remote commit set `since_last_remote_commit: true`. e.g
# with:
Expand All @@ -110,7 +110,7 @@ jobs:
# Example 2
- name: Get changed files in the docs folder
id: changed-files-specific
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
files: docs/*.{js,html} # Alternatively using: `docs/**` or `docs`

Expand All @@ -123,7 +123,7 @@ jobs:
# Example 3
- name: Get all changed *.js file(s) or any file in the static folder excluding the docs folder
id: changed-files-excluded
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
files: |
**/*.js
Expand Down Expand Up @@ -255,7 +255,7 @@ Using this versioning convention helps ensure that users can easily identify and
...
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
...
```

Expand All @@ -268,7 +268,7 @@ Using this versioning convention helps ensure that users can easily identify and
...
- name: Get all changed files and use a comma separator in the output
id: changed-files
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
separator: ","
...
Expand All @@ -285,7 +285,7 @@ See [inputs](#inputs) for more information.
...
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35

- name: List all added files
run: |
Expand All @@ -306,7 +306,7 @@ See [outputs](#outputs) for a list of all available outputs.
...
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35

- name: Run a step if my-file.txt was modified
if: contains(steps.changed-files.outputs.modified_files, 'my-file.txt')
Expand Down Expand Up @@ -371,7 +371,7 @@ See [action.yml](action.yml#L264) for a list of all available keys.
...
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
files: |
my-file.txt
Expand All @@ -394,7 +394,7 @@ See [inputs](#inputs) for more information.
...
- name: Get changed files
id: changed-files-specific
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
files: |
my-file.txt
Expand Down Expand Up @@ -441,7 +441,7 @@ See [outputs](#outputs) for a list of all available outputs.
...
- name: Get changed files using a source file or list of file(s) to populate to files input.
id: changed-files-specific-source-file
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
files_from_source_file: test/changed-files-list.txt
...
Expand All @@ -458,7 +458,7 @@ See [inputs](#inputs) for more information.
...
- name: Get changed files using a source file or list of file(s) to populate to files input and optionally specify more files.
id: changed-files-specific-source-file-and-specify-files
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
files_from_source_file: |
test/changed-files-list.txt
Expand All @@ -479,7 +479,7 @@ See [inputs](#inputs) for more information.
...
- name: Get changed files using a different SHA
id: changed-files
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
sha: ${{ github.event.pull_request.head.sha }}
...
Expand All @@ -496,7 +496,7 @@ See [inputs](#inputs) for more information.
...
- name: Get changed files using a different base SHA
id: changed-files
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
base_sha: ${{ github.event.pull_request.base.sha }}
...
Expand Down Expand Up @@ -528,11 +528,11 @@ jobs:

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35

- name: Get changed files in the .github folder
id: changed-files-specific
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
base_sha: ${{ steps.get-base-sha.outputs.base_sha }}
files: .github/**
Expand Down Expand Up @@ -562,7 +562,7 @@ See [inputs](#inputs) for more information.

- name: Run changed-files with defaults in dir1
id: changed-files-for-dir1
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
path: dir1

Expand All @@ -585,7 +585,7 @@ See [inputs](#inputs) for more information.
...
- name: Run changed-files with quotepath disabled
id: changed-files-quotepath
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
quotepath: "false"

Expand Down Expand Up @@ -624,7 +624,7 @@ See [inputs](#inputs) for more information.

- name: Run changed-files with the commit of the last successful test workflow run
id: changed-files-base-sha-push
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
base_sha: ${{ steps.last_successful_commit_push.outputs.base }}
...
Expand All @@ -651,7 +651,7 @@ See [inputs](#inputs) for more information.

- name: Run changed-files with the commit of the last successful test workflow run on main
id: changed-files-base-sha-pull-request
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
base_sha: ${{ steps.last_successful_commit_pull_request.outputs.base }}
...
Expand All @@ -675,7 +675,7 @@ See [inputs](#inputs) for more information.
...
- name: Run changed-files with dir_names
id: changed-files-dir-names
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
dir_names: "true"
...
Expand All @@ -692,7 +692,7 @@ See [inputs](#inputs) for more information.
...
- name: Run changed-files with json output
id: changed-files-json
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
json: "true"
...
Expand All @@ -709,13 +709,13 @@ See [inputs](#inputs) for more information.
...
- name: Get changed-files since 2022-08-19
id: changed-files-since
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
since: "2022-08-19"

- name: Get changed-files until 2022-08-20
id: changed-files-until
uses: tj-actions/changed-files@V35
uses: tj-actions/changed-files@v35
with:
until: "2022-08-20"
...
Expand Down