@@ -123,17 +123,13 @@ jobs:
123
123
- name : Get changed files
124
124
id : changed-files
125
125
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
-
129
126
# To compare changes between the current commit and the last pushed remote commit set `since_last_remote_commit: true`. e.g
130
127
# with:
131
128
# since_last_remote_commit: true
132
129
133
130
- name : List all changed files
134
131
env :
135
- ALL_CHANGED_FILES : |-
136
- ${{ steps.changed-files.outputs.all_changed_files }}
132
+ ALL_CHANGED_FILES : ${{ steps.changed-files.outputs.all_changed_files }}
137
133
run : |
138
134
for file in "$ALL_CHANGED_FILES"; do
139
135
echo "$file was changed"
@@ -144,16 +140,14 @@ jobs:
144
140
id : changed-markdown-files
145
141
uses : tj-actions/changed-files@v40
146
142
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.
148
143
# Avoid using single or double quotes for multiline patterns
149
144
files : |
150
145
**.md
151
146
152
147
- name : List all changed files markdown files
153
148
if : steps.changed-markdown-files.outputs.any_changed == 'true'
154
149
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 }}
157
151
run : |
158
152
for file in "$ALL_CHANGED_FILES"; do
159
153
echo "$file was changed"
@@ -164,7 +158,6 @@ jobs:
164
158
id : changed-files-yaml
165
159
uses : tj-actions/changed-files@v40
166
160
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.
168
161
files_yaml : |
169
162
doc:
170
163
- '**.md'
@@ -181,17 +174,15 @@ jobs:
181
174
# 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.
182
175
if : steps.changed-files-yaml.outputs.test_any_changed == 'true'
183
176
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 }}
186
178
run : |
187
179
echo "One or more test file(s) has changed."
188
180
echo "List all the files that have changed: $TEST_ALL_CHANGED_FILES"
189
181
190
182
- name : Run step if doc file(s) change
191
183
if : steps.changed-files-yaml.outputs.doc_any_changed == 'true'
192
184
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 }}
195
186
run : |
196
187
echo "One or more doc file(s) has changed."
197
188
echo "List all the files that have changed: $DOC_ALL_CHANGED_FILES"
@@ -201,15 +192,13 @@ jobs:
201
192
id : changed-files-specific
202
193
uses : tj-actions/changed-files@v40
203
194
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.
205
195
files : docs/*.{js,html} # Alternatively using: `docs/**`
206
196
files_ignore : docs/static.js
207
197
208
198
- name : Run step if any file(s) in the docs folder change
209
199
if : steps.changed-files-specific.outputs.any_changed == 'true'
210
200
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 }}
213
202
run : |
214
203
echo "One or more files in the docs folder has changed."
215
204
echo "List all the files that have changed: $ALL_CHANGED_FILES"
0 commit comments