Skip to content

Commit cc08e17

Browse files
Upgraded to v41 (#1811)
Co-authored-by: jackton1 <[email protected]>
1 parent 6e79d6e commit cc08e17

File tree

3 files changed

+89
-32
lines changed

3 files changed

+89
-32
lines changed

HISTORY.md

+57
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,62 @@
11
# Changelog
22

3+
# [41.0.0](https://github.com/tj-actions/changed-files/compare/v40.2.3...v41.0.0) - (2023-12-23)
4+
5+
## <!-- 1 -->🐛 Bug Fixes
6+
7+
- Update safe output regex and the docs ([#1805](https://github.com/tj-actions/changed-files/issues/1805)) ([ff2f6e6](https://github.com/tj-actions/changed-files/commit/ff2f6e6b91913a7be42be1b5917330fe442f2ede)) - (tj-actions[bot])
8+
9+
## <!-- 11 -->⏪ Reverts
10+
11+
- Revert "chore(deps): update actions/download-artifact action to v4" ([#1806](https://github.com/tj-actions/changed-files/issues/1806))
12+
13+
([4f573fe](https://github.com/tj-actions/changed-files/commit/4f573fed06c9abb5da4c72f75c1c320718114ff7)) - (Tonye Jack)
14+
15+
## <!-- 26 -->🔄 Update
16+
17+
- Update README.md ([6e79d6e](https://github.com/tj-actions/changed-files/commit/6e79d6e3dbe48946636c2939c80ff5c84ff7f9fe)) - (Tonye Jack)
18+
- Update README.md ([d13ac19](https://github.com/tj-actions/changed-files/commit/d13ac1942fb3c1d7d32017915bb082cebe8a272a)) - (Tonye Jack)
19+
- Update README.md ([bb89f97](https://github.com/tj-actions/changed-files/commit/bb89f97963be96b39e1a303e64d5b91a1af4c340)) - (Tonye Jack)
20+
- Updated README.md ([#1810](https://github.com/tj-actions/changed-files/issues/1810))
21+
22+
Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> ([1864078](https://github.com/tj-actions/changed-files/commit/1864078d0afadf68ba489e671ecc09fefe8b70ab)) - (tj-actions[bot])
23+
- Update README.md ([#1808](https://github.com/tj-actions/changed-files/issues/1808))
24+
25+
([47371c5](https://github.com/tj-actions/changed-files/commit/47371c50e97c089212d9eb92ca26c8453224e78e)) - (Tonye Jack)
26+
27+
## <!-- 30 -->📝 Other
28+
29+
- Merge pull request from GHSA-mcph-m25j-8j63
30+
31+
* feat: add `safe_output` input enabled by default
32+
33+
* fix: migrate README to safe uses of interpolation
34+
35+
* fix: README `uses` typo
36+
37+
* fix: README examples to account for newlines
38+
39+
* fix: README examples missing `safe_output`
40+
41+
* fix: remove sanitization of `'`
42+
43+
* fix: also sanitize `|&;` ([0102c07](https://github.com/tj-actions/changed-files/commit/0102c07446a3cad972f4afcbd0ee4dbc4b6d2d1b)) - (Jorge)
44+
45+
## <!-- 7 -->⚙️ Miscellaneous Tasks
46+
47+
- **deps:** Lock file maintenance ([f495a03](https://github.com/tj-actions/changed-files/commit/f495a0321d3fffa62da2573adf70b77d5eb2f57a)) - (renovate[bot])
48+
- **deps:** Update dependency eslint-plugin-prettier to v5.1.1 ([089842a](https://github.com/tj-actions/changed-files/commit/089842a7a899531f61a45ef6ea69c485e1d62dbe)) - (renovate[bot])
49+
- **deps:** Lock file maintenance ([787db06](https://github.com/tj-actions/changed-files/commit/787db0612e783421667a00319cf394b649682c4c)) - (renovate[bot])
50+
- **deps:** Update dependency eslint-plugin-prettier to v5.1.0 ([4ef6b56](https://github.com/tj-actions/changed-files/commit/4ef6b56482141a958bd3efb05520e4df9ecf4147)) - (renovate[bot])
51+
- **deps:** Update typescript-eslint monorepo to v6.15.0 ([c9ae347](https://github.com/tj-actions/changed-files/commit/c9ae347dbba64d95d83f36a0568e0e25a688dd1f)) - (renovate[bot])
52+
53+
## <!-- 9 -->⬆️ Upgrades
54+
55+
- Upgraded to v40.2.3 ([#1800](https://github.com/tj-actions/changed-files/issues/1800))
56+
57+
Co-authored-by: jackton1 <[email protected]>
58+
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com> ([f9480db](https://github.com/tj-actions/changed-files/commit/f9480db177263c95588c5d9dae7c78f97d39242a)) - (tj-actions[bot])
59+
360
# [40.2.3](https://github.com/tj-actions/changed-files/compare/v40.2.2...v40.2.3) - (2023-12-18)
461

562
## <!-- 16 -->➕ Add

README.md

+31-31
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
# Example 1
123123
- name: Get changed files
124124
id: changed-files
125-
uses: tj-actions/changed-files@v40
125+
uses: tj-actions/changed-files@v41
126126
# To compare changes between the current commit and the last pushed remote commit set `since_last_remote_commit: true`. e.g
127127
# with:
128128
# since_last_remote_commit: true
@@ -138,7 +138,7 @@ jobs:
138138
# Example 2
139139
- name: Get all changed markdown files
140140
id: changed-markdown-files
141-
uses: tj-actions/changed-files@v40
141+
uses: tj-actions/changed-files@v41
142142
with:
143143
# Avoid using single or double quotes for multiline patterns
144144
files: |
@@ -156,7 +156,7 @@ jobs:
156156
# Example 3
157157
- name: Get all test, doc and src files that have changed
158158
id: changed-files-yaml
159-
uses: tj-actions/changed-files@v40
159+
uses: tj-actions/changed-files@v41
160160
with:
161161
files_yaml: |
162162
doc:
@@ -190,7 +190,7 @@ jobs:
190190
# Example 3
191191
- name: Get changed files in the docs folder
192192
id: changed-files-specific
193-
uses: tj-actions/changed-files@v40
193+
uses: tj-actions/changed-files@v41
194194
with:
195195
files: docs/*.{js,html} # Alternatively using: `docs/**`
196196
files_ignore: docs/static.js
@@ -232,7 +232,7 @@ jobs:
232232
steps:
233233
- name: Get changed files
234234
id: changed-files
235-
uses: tj-actions/changed-files@v40
235+
uses: tj-actions/changed-files@v41
236236

237237
- name: List all changed files
238238
env:
@@ -275,7 +275,7 @@ jobs:
275275

276276
- name: Get changed files
277277
id: changed-files
278-
uses: tj-actions/changed-files@v40
278+
uses: tj-actions/changed-files@v41
279279
# NOTE: `since_last_remote_commit: true` is implied by default and falls back to the previous local commit.
280280

281281
- name: List all changed files
@@ -320,7 +320,7 @@ Support this project with a :star:
320320
<!-- AUTO-DOC-INPUT:START - Do not remove or modify this section -->
321321

322322
```yaml
323-
- uses: tj-actions/changed-files@v40
323+
- uses: tj-actions/changed-files@v41
324324
id: changed-files
325325
with:
326326
# Github API URL.
@@ -702,7 +702,7 @@ The format of the version string is as follows:
702702
...
703703
- name: Get changed files
704704
id: changed-files
705-
uses: tj-actions/changed-files@v40
705+
uses: tj-actions/changed-files@v41
706706
...
707707
```
708708

@@ -715,7 +715,7 @@ The format of the version string is as follows:
715715
...
716716
- name: Get changed files
717717
id: changed-files
718-
uses: tj-actions/changed-files@v40
718+
uses: tj-actions/changed-files@v41
719719
with:
720720
safe_output: false # set to false because we are using an environment variable to store the output and avoid command injection.
721721

@@ -738,7 +738,7 @@ The format of the version string is as follows:
738738
...
739739
- name: Get all changed files and use a comma separator in the output
740740
id: changed-files
741-
uses: tj-actions/changed-files@v40
741+
uses: tj-actions/changed-files@v41
742742
with:
743743
separator: ","
744744
...
@@ -755,7 +755,7 @@ See [inputs](#inputs) for more information.
755755
...
756756
- name: Get changed files
757757
id: changed-files
758-
uses: tj-actions/changed-files@v40
758+
uses: tj-actions/changed-files@v41
759759

760760
- name: List all added files
761761
env:
@@ -778,7 +778,7 @@ See [outputs](#outputs) for a list of all available outputs.
778778
...
779779
- name: Get changed files
780780
id: changed-files
781-
uses: tj-actions/changed-files@v40
781+
uses: tj-actions/changed-files@v41
782782

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

800800
- name: Get changed files and write the outputs to a Txt file
801801
id: changed-files-write-output-files-txt
802-
uses: tj-actions/changed-files@v40
802+
uses: tj-actions/changed-files@v41
803803
with:
804804
write_output_files: true
805805

@@ -818,7 +818,7 @@ See [outputs](#outputs) for a list of all available outputs.
818818
...
819819
- name: Get changed files and write the outputs to a JSON file
820820
id: changed-files-write-output-files-json
821-
uses: tj-actions/changed-files@v40
821+
uses: tj-actions/changed-files@v41
822822
with:
823823
json: true
824824
write_output_files: true
@@ -838,7 +838,7 @@ See [outputs](#outputs) for a list of all available outputs.
838838
...
839839
- name: Get changed files
840840
id: changed-files
841-
uses: tj-actions/changed-files@v40
841+
uses: tj-actions/changed-files@v41
842842
with:
843843
files: |
844844
my-file.txt
@@ -861,7 +861,7 @@ See [inputs](#inputs) for more information.
861861
...
862862
- name: Get changed files
863863
id: changed-files-specific
864-
uses: tj-actions/changed-files@v40
864+
uses: tj-actions/changed-files@v41
865865
with:
866866
files: |
867867
my-file.txt
@@ -912,7 +912,7 @@ See [outputs](#outputs) for a list of all available outputs.
912912
...
913913
- name: Get changed files using a source file or list of file(s) to populate to files input.
914914
id: changed-files-specific-source-file
915-
uses: tj-actions/changed-files@v40
915+
uses: tj-actions/changed-files@v41
916916
with:
917917
files_from_source_file: test/changed-files-list.txt
918918
...
@@ -929,7 +929,7 @@ See [inputs](#inputs) for more information.
929929
...
930930
- name: Get changed files using a source file or list of file(s) to populate to files input and optionally specify more files.
931931
id: changed-files-specific-source-file-and-specify-files
932-
uses: tj-actions/changed-files@v40
932+
uses: tj-actions/changed-files@v41
933933
with:
934934
files_from_source_file: |
935935
test/changed-files-list.txt
@@ -950,7 +950,7 @@ See [inputs](#inputs) for more information.
950950
...
951951
- name: Get changed files using a different SHA
952952
id: changed-files
953-
uses: tj-actions/changed-files@v40
953+
uses: tj-actions/changed-files@v41
954954
with:
955955
sha: ${{ github.event.pull_request.head.sha }}
956956
...
@@ -967,7 +967,7 @@ See [inputs](#inputs) for more information.
967967
...
968968
- name: Get changed files using a different base SHA
969969
id: changed-files
970-
uses: tj-actions/changed-files@v40
970+
uses: tj-actions/changed-files@v41
971971
with:
972972
base_sha: ${{ github.event.pull_request.base.sha }}
973973
...
@@ -999,11 +999,11 @@ jobs:
999999

10001000
- name: Get changed files
10011001
id: changed-files
1002-
uses: tj-actions/changed-files@v40
1002+
uses: tj-actions/changed-files@v41
10031003

10041004
- name: Get changed files in the .github folder
10051005
id: changed-files-specific
1006-
uses: tj-actions/changed-files@v40
1006+
uses: tj-actions/changed-files@v41
10071007
with:
10081008
base_sha: ${{ steps.get-base-sha.outputs.base_sha }}
10091009
files: .github/**
@@ -1035,7 +1035,7 @@ See [inputs](#inputs) for more information.
10351035

10361036
- name: Run changed-files with defaults in dir1
10371037
id: changed-files-for-dir1
1038-
uses: tj-actions/changed-files@v40
1038+
uses: tj-actions/changed-files@v41
10391039
with:
10401040
path: dir1
10411041

@@ -1061,13 +1061,13 @@ See [inputs](#inputs) for more information.
10611061
...
10621062
- name: Run changed-files with quotepath disabled
10631063
id: changed-files-quotepath
1064-
uses: tj-actions/changed-files@v40
1064+
uses: tj-actions/changed-files@v41
10651065
with:
10661066
quotepath: "false"
10671067

10681068
- name: Run changed-files with quotepath disabled for a specified list of file(s)
10691069
id: changed-files-quotepath-specific
1070-
uses: tj-actions/changed-files@v40
1070+
uses: tj-actions/changed-files@v41
10711071
with:
10721072
files: test/test-è.txt
10731073
quotepath: "false"
@@ -1100,7 +1100,7 @@ See [inputs](#inputs) for more information.
11001100

11011101
- name: Run changed-files with the commit of the last successful test workflow run
11021102
id: changed-files-base-sha-push
1103-
uses: tj-actions/changed-files@v40
1103+
uses: tj-actions/changed-files@v41
11041104
with:
11051105
base_sha: ${{ steps.last_successful_commit_push.outputs.base }}
11061106
...
@@ -1127,7 +1127,7 @@ See [inputs](#inputs) for more information.
11271127

11281128
- name: Run changed-files with the commit of the last successful test workflow run on the main branch
11291129
id: changed-files-base-sha-pull-request
1130-
uses: tj-actions/changed-files@v40
1130+
uses: tj-actions/changed-files@v41
11311131
with:
11321132
base_sha: ${{ steps.last_successful_commit_pull_request.outputs.base }}
11331133
...
@@ -1153,7 +1153,7 @@ See [inputs](#inputs) for more information.
11531153
...
11541154
- name: Run changed-files with dir_names
11551155
id: changed-files-dir-names
1156-
uses: tj-actions/changed-files@v40
1156+
uses: tj-actions/changed-files@v41
11571157
with:
11581158
dir_names: "true"
11591159
...
@@ -1170,7 +1170,7 @@ See [inputs](#inputs) for more information.
11701170
...
11711171
- name: Run changed-files with JSON output
11721172
id: changed-files-json
1173-
uses: tj-actions/changed-files@v40
1173+
uses: tj-actions/changed-files@v41
11741174
with:
11751175
json: "true"
11761176
...
@@ -1187,13 +1187,13 @@ See [inputs](#inputs) for more information.
11871187
...
11881188
- name: Get changed-files since 2022-08-19
11891189
id: changed-files-since
1190-
uses: tj-actions/changed-files@v40
1190+
uses: tj-actions/changed-files@v41
11911191
with:
11921192
since: "2022-08-19"
11931193

11941194
- name: Get changed-files until 2022-08-20
11951195
id: changed-files-until
1196-
uses: tj-actions/changed-files@v40
1196+
uses: tj-actions/changed-files@v41
11971197
with:
11981198
until: "2022-08-20"
11991199
...

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tj-actions/changed-files",
3-
"version": "40.2.3",
3+
"version": "41.0.0",
44
"description": "Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.",
55
"main": "lib/main.js",
66
"publishConfig": {

0 commit comments

Comments
 (0)