Skip to content

Commit 8e2a637

Browse files
committed
Publish example for gha - use correct array syntax for branch
Avoid triggering linting error in VSCODE closes quarto-dev/quarto-cli#10207
1 parent 3d41b26 commit 8e2a637

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

docs/publishing/github-pages.qmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Once you've completed a local publish, add a `publish.yml` GitHub Action to your
143143
on:
144144
workflow_dispatch:
145145
push:
146-
branches: main
146+
branches: [main]
147147
148148
name: Quarto Publish
149149
@@ -181,7 +181,7 @@ Here is a complete example of a GitHub Action that installs Python, Jupyter, and
181181
on:
182182
workflow_dispatch:
183183
push:
184-
branches: main
184+
branches: [main]
185185
186186
name: Quarto Publish
187187
@@ -221,7 +221,7 @@ Here is a complete example of a GitHub Action that installs R and package depend
221221
on:
222222
workflow_dispatch:
223223
push:
224-
branches: main
224+
branches: [main]
225225
226226
name: Quarto Publish
227227

docs/publishing/netlify.qmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Now, commit and push your modified project (including `_freeze`, `netlify.toml`,
9595
on:
9696
workflow_dispatch:
9797
push:
98-
branches: main
98+
branches: [main]
9999
100100
name: Quarto Publish
101101
@@ -148,7 +148,7 @@ Here is a complete example of a GitHub Action that installs Python, Jupyter, and
148148
on:
149149
workflow_dispatch:
150150
push:
151-
branches: main
151+
branches: [main]
152152
153153
name: Quarto Publish
154154
@@ -185,7 +185,7 @@ Here is a complete example of a GitHub Action that installs R and package depend
185185
on:
186186
workflow_dispatch:
187187
push:
188-
branches: main
188+
branches: [main]
189189
190190
name: Quarto Publish
191191

docs/publishing/posit-cloud.qmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ To setup your publish action, create a `.github/workflows/publish.yml` file in y
191191
on:
192192
workflow_dispatch:
193193
push:
194-
branches: main
194+
branches: [main]
195195
196196
name: Quarto Publish
197197
@@ -235,7 +235,7 @@ Here is a complete example of a GitHub Action that installs Python, Jupyter, and
235235
on:
236236
workflow_dispatch:
237237
push:
238-
branches: main
238+
branches: [main]
239239
240240
name: Quarto Publish
241241
@@ -273,7 +273,7 @@ Here is a complete example of a GitHub Action that installs R and package depend
273273
on:
274274
workflow_dispatch:
275275
push:
276-
branches: main
276+
branches: [main]
277277
278278
name: Quarto Publish
279279

docs/publishing/quarto-pub.qmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ See the article on [Publishing with CI](ci.qmd) for additional details on non-in
109109
on:
110110
workflow_dispatch:
111111
push:
112-
branches: main
112+
branches: [main]
113113
114114
name: Quarto Publish
115115
@@ -162,7 +162,7 @@ Here is a complete example of a GitHub Action that installs Python, Jupyter, and
162162
on:
163163
workflow_dispatch:
164164
push:
165-
branches: main
165+
branches: [main]
166166
167167
name: Quarto Publish
168168
@@ -199,7 +199,7 @@ Here is a complete example of a GitHub Action that installs R and package depend
199199
on:
200200
workflow_dispatch:
201201
push:
202-
branches: main
202+
branches: [main]
203203
204204
name: Quarto Publish
205205

docs/publishing/rstudio-connect.qmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ To setup your publish action, create a `.github/workflows/publish.yml` file in y
251251
on:
252252
workflow_dispatch:
253253
push:
254-
branches: main
254+
branches: [main]
255255
256256
name: Quarto Publish
257257
@@ -295,7 +295,7 @@ Here is a complete example of a GitHub Action that installs Python, Jupyter, and
295295
on:
296296
workflow_dispatch:
297297
push:
298-
branches: main
298+
branches: [main]
299299
300300
name: Quarto Publish
301301
@@ -333,7 +333,7 @@ Here is a complete example of a GitHub Action that installs R and package depend
333333
on:
334334
workflow_dispatch:
335335
push:
336-
branches: main
336+
branches: [main]
337337
338338
name: Quarto Publish
339339

0 commit comments

Comments
 (0)