Skip to content

Commit

Permalink
Upgraded to v43 (#1990)
Browse files Browse the repository at this point in the history
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com>
  • Loading branch information
tj-actions-bot and jackton1 authored Mar 13, 2024
1 parent 77af4be commit d03038e
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 32 deletions.
28 changes: 28 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Changelog

# [43.0.0](https://github.com/tj-actions/changed-files/compare/v42.1.0...v43.0.0) - (2024-03-13)

## <!-- 0 -->🚀 Features

- Add support for returning true for `any_{changed, modified, deleted}` outputs when no patterns are specified ([#1988](https://github.com/tj-actions/changed-files/issues/1988)) ([a5cf6aa](https://github.com/tj-actions/changed-files/commit/a5cf6aa30cfbe1e0764d2aa5e9f42edb847b6d55)) - (Tonye Jack)

## <!-- 26 -->🔄 Update

- Updated README.md ([#1989](https://github.com/tj-actions/changed-files/issues/1989))

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com> ([77af4be](https://github.com/tj-actions/changed-files/commit/77af4bed286740ef1a6387dc4e4e4dec39f96054)) - (tj-actions[bot])

## <!-- 7 -->⚙️ Miscellaneous Tasks

- **deps:** Update dependency @types/node to v20.11.27 ([15807c9](https://github.com/tj-actions/changed-files/commit/15807c9c84ec7ff092c52f2f9fecc600e81420f1)) - (renovate[bot])
- **deps:** Update peter-evans/create-pull-request action to v6.0.2 ([dc458cf](https://github.com/tj-actions/changed-files/commit/dc458cf7531fd39dcf942beb39ef6bdcaddc9715)) - (renovate[bot])
- **deps:** Update dependency @types/lodash to v4.17.0 ([92ca3ee](https://github.com/tj-actions/changed-files/commit/92ca3eebd01cb3fc4d88a4cbd10f344ea4a116d3)) - (renovate[bot])
- **deps:** Update dependency @typescript-eslint/eslint-plugin to v7.2.0 ([f591d0c](https://github.com/tj-actions/changed-files/commit/f591d0c7f0b790ca8c139ce92ff4e8c238cb8940)) - (renovate[bot])
- **deps:** Update dependency @types/node to v20.11.26 ([3502336](https://github.com/tj-actions/changed-files/commit/35023362e2b0ff1cd9b970167a1603614e1ad854)) - (renovate[bot])
- **deps:** Update dependency @typescript-eslint/parser to v7.2.0 ([e436cb6](https://github.com/tj-actions/changed-files/commit/e436cb6d85bcd4aecab64c542f2268998a1cdd2f)) - (renovate[bot])
- **deps:** Lock file maintenance ([257d47d](https://github.com/tj-actions/changed-files/commit/257d47dfba22be3e0a17f6bad47ff07f7e76747c)) - (renovate[bot])

## <!-- 9 -->⬆️ Upgrades

- Upgraded to v42.1.0 ([#1977](https://github.com/tj-actions/changed-files/issues/1977))

Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([4918e11](https://github.com/tj-actions/changed-files/commit/4918e1183080b35a085c91c8abc9e6adc4de61a1)) - (tj-actions[bot])

# [42.1.0](https://github.com/tj-actions/changed-files/compare/v42.0.7...v42.1.0) - (2024-03-09)

## <!-- 0 -->🚀 Features
Expand Down
62 changes: 31 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
# -----------------------------------------------------------------------------------------------------------
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
# To compare changes between the current commit and the last pushed remote commit set `since_last_remote_commit: true`. e.g
# with:
# since_last_remote_commit: true
Expand All @@ -142,7 +142,7 @@ jobs:
# -----------------------------------------------------------------------------------------------------------
- name: Get all changed markdown files
id: changed-markdown-files
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
with:
# Avoid using single or double quotes for multiline patterns
files: |
Expand All @@ -162,7 +162,7 @@ jobs:
# -----------------------------------------------------------------------------------------------------------
- name: Get all test, doc and src files that have changed
id: changed-files-yaml
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
with:
files_yaml: |
doc:
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
# -----------------------------------------------------------------------------------------------------------
- name: Get changed files in the docs folder
id: changed-files-specific
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
with:
files: docs/*.{js,html} # Alternatively using: `docs/**`
files_ignore: docs/static.js
Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:
steps:
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43

- name: List all changed files
env:
Expand Down Expand Up @@ -282,7 +282,7 @@ jobs:

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
# NOTE: `since_last_remote_commit: true` is implied by default and falls back to the previous local commit.

- name: List all changed files
Expand Down Expand Up @@ -329,7 +329,7 @@ Support this project with a :star:
<!-- AUTO-DOC-INPUT:START - Do not remove or modify this section -->

```yaml
- uses: tj-actions/changed-files@v42
- uses: tj-actions/changed-files@v43
id: changed-files
with:
# Github API URL.
Expand Down Expand Up @@ -724,7 +724,7 @@ The format of the version string is as follows:
...
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
...
```

Expand All @@ -737,7 +737,7 @@ The format of the version string is as follows:
...
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
with:
safe_output: false # set to false because we are using an environment variable to store the output and avoid command injection.

Expand All @@ -760,7 +760,7 @@ The format of the version string is as follows:
...
- name: Get all changed files and use a comma separator in the output
id: changed-files
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
with:
separator: ","
...
Expand All @@ -777,7 +777,7 @@ See [inputs](#inputs) for more information.
...
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43

- name: List all added files
env:
Expand All @@ -800,7 +800,7 @@ See [outputs](#outputs) for a list of all available outputs.
...
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43

- name: Run a step if my-file.txt was modified
if: contains(steps.changed-files.outputs.modified_files, 'my-file.txt')
Expand All @@ -821,7 +821,7 @@ See [outputs](#outputs) for a list of all available outputs.

- name: Get changed files and write the outputs to a Txt file
id: changed-files-write-output-files-txt
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
with:
write_output_files: true

Expand All @@ -840,7 +840,7 @@ See [outputs](#outputs) for a list of all available outputs.
...
- name: Get changed files and write the outputs to a JSON file
id: changed-files-write-output-files-json
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
with:
json: true
write_output_files: true
Expand All @@ -860,7 +860,7 @@ See [outputs](#outputs) for a list of all available outputs.
...
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
with:
files: |
my-file.txt
Expand All @@ -883,7 +883,7 @@ See [inputs](#inputs) for more information.
...
- name: Get changed files
id: changed-files-specific
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
with:
files: |
my-file.txt
Expand Down Expand Up @@ -934,7 +934,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@v42
uses: tj-actions/changed-files@v43
with:
files_from_source_file: test/changed-files-list.txt
...
Expand All @@ -951,7 +951,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@v42
uses: tj-actions/changed-files@v43
with:
files_from_source_file: |
test/changed-files-list.txt
Expand All @@ -972,7 +972,7 @@ See [inputs](#inputs) for more information.
...
- name: Get changed files using a different SHA
id: changed-files
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
with:
sha: ${{ github.event.pull_request.head.sha }}
...
Expand All @@ -989,7 +989,7 @@ See [inputs](#inputs) for more information.
...
- name: Get changed files using a different base SHA
id: changed-files
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
with:
base_sha: ${{ github.event.pull_request.base.sha }}
...
Expand Down Expand Up @@ -1021,7 +1021,7 @@ jobs:

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43

- name: List changed files
env:
Expand All @@ -1031,7 +1031,7 @@ jobs:
- name: Get changed files in the .github folder
id: changed-files-specific
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
with:
files: .github/**

Expand Down Expand Up @@ -1062,7 +1062,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@v42
uses: tj-actions/changed-files@v43
with:
path: dir1

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

- name: Run changed-files with quotepath disabled for a specified list of file(s)
id: changed-files-quotepath-specific
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
with:
files: test/test-è.txt
quotepath: "false"
Expand Down Expand Up @@ -1127,7 +1127,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@v42
uses: tj-actions/changed-files@v43
with:
base_sha: ${{ steps.last_successful_commit_push.outputs.base }}
...
Expand All @@ -1154,7 +1154,7 @@ See [inputs](#inputs) for more information.

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

- name: Get changed-files until 2022-08-20
id: changed-files-until
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v43
with:
until: "2022-08-20"
...
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tj-actions/changed-files",
"version": "42.1.0",
"version": "43.0.0",
"description": "Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.",
"main": "lib/main.js",
"publishConfig": {
Expand Down

0 comments on commit d03038e

Please sign in to comment.