Skip to content

Commit bb89f97

Browse files
authored
Update README.md
1 parent 1864078 commit bb89f97

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

README.md

+5-16
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,13 @@ jobs:
123123
- name: Get changed files
124124
id: changed-files
125125
uses: tj-actions/changed-files@v40
126-
with:
127-
safe_output: false # true by default, set to false because we are using an environment variable to store the output and avoid command injection.
128-
129126
# To compare changes between the current commit and the last pushed remote commit set `since_last_remote_commit: true`. e.g
130127
# with:
131128
# since_last_remote_commit: true
132129

133130
- name: List all changed files
134131
env:
135-
ALL_CHANGED_FILES: |-
136-
${{ steps.changed-files.outputs.all_changed_files }}
132+
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
137133
run: |
138134
for file in "$ALL_CHANGED_FILES"; do
139135
echo "$file was changed"
@@ -144,16 +140,14 @@ jobs:
144140
id: changed-markdown-files
145141
uses: tj-actions/changed-files@v40
146142
with:
147-
safe_output: false # true by default, set to false because we are using an environment variable to store the output and avoid command injection.
148143
# Avoid using single or double quotes for multiline patterns
149144
files: |
150145
**.md
151146
152147
- name: List all changed files markdown files
153148
if: steps.changed-markdown-files.outputs.any_changed == 'true'
154149
env:
155-
ALL_CHANGED_FILES: |-
156-
${{ steps.changed-markdown-files.outputs.all_changed_files }}
150+
ALL_CHANGED_FILES: ${{ steps.changed-markdown-files.outputs.all_changed_files }}
157151
run: |
158152
for file in "$ALL_CHANGED_FILES"; do
159153
echo "$file was changed"
@@ -164,7 +158,6 @@ jobs:
164158
id: changed-files-yaml
165159
uses: tj-actions/changed-files@v40
166160
with:
167-
safe_output: false # true by default, set to false because we are using an environment variable to store the output and avoid command injection.
168161
files_yaml: |
169162
doc:
170163
- '**.md'
@@ -181,17 +174,15 @@ jobs:
181174
# NOTE: Ensure all outputs are prefixed by the same key used above e.g. `test_(...)` | `doc_(...)` | `src_(...)` when trying to access the `any_changed` output.
182175
if: steps.changed-files-yaml.outputs.test_any_changed == 'true'
183176
env:
184-
TEST_ALL_CHANGED_FILES: |-
185-
${{ steps.changed-files-yaml.outputs.test_all_changed_files }}
177+
TEST_ALL_CHANGED_FILES: ${{ steps.changed-files-yaml.outputs.test_all_changed_files }}
186178
run: |
187179
echo "One or more test file(s) has changed."
188180
echo "List all the files that have changed: $TEST_ALL_CHANGED_FILES"
189181
190182
- name: Run step if doc file(s) change
191183
if: steps.changed-files-yaml.outputs.doc_any_changed == 'true'
192184
env:
193-
DOC_ALL_CHANGED_FILES: |-
194-
${{ steps.changed-files-yaml.outputs.doc_all_changed_files }}
185+
DOC_ALL_CHANGED_FILES: ${{ steps.changed-files-yaml.outputs.doc_all_changed_files }}
195186
run: |
196187
echo "One or more doc file(s) has changed."
197188
echo "List all the files that have changed: $DOC_ALL_CHANGED_FILES"
@@ -201,15 +192,13 @@ jobs:
201192
id: changed-files-specific
202193
uses: tj-actions/changed-files@v40
203194
with:
204-
safe_output: false # true by default, set to false because we are using an environment variable to store the output and avoid command injection.
205195
files: docs/*.{js,html} # Alternatively using: `docs/**`
206196
files_ignore: docs/static.js
207197

208198
- name: Run step if any file(s) in the docs folder change
209199
if: steps.changed-files-specific.outputs.any_changed == 'true'
210200
env:
211-
ALL_CHANGED_FILES: |-
212-
${{ steps.changed-files-specific.outputs.all_changed_files }}
201+
ALL_CHANGED_FILES: ${{ steps.changed-files-specific.outputs.all_changed_files }}
213202
run: |
214203
echo "One or more files in the docs folder has changed."
215204
echo "List all the files that have changed: $ALL_CHANGED_FILES"

0 commit comments

Comments
 (0)