Skip to content

Commit 21c81c1

Browse files
committed
Using custom action requires a checkout of .github folder
1 parent ed04bba commit 21c81c1

File tree

2 files changed

+57
-33
lines changed

2 files changed

+57
-33
lines changed

.github/workflows/create-release.yml

Lines changed: 57 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ jobs:
3232
tag_pushed: ${{ steps.version_commit.outputs.tag_pushed }}
3333
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'quarto-dev/quarto-cli')
3434
steps:
35-
- name: Prevent Re-run
36-
uses: ./.github/actions/prevent-rerun
37-
3835
- uses: actions/checkout@v4
3936
with:
4037
fetch-depth: 0
4138

39+
- name: Prevent Re-run
40+
uses: ./.github/workflows/actions/prevent-rerun
41+
4242
# we _also_ need npm, specifically for webui/preview
4343
- uses: actions/setup-node@v4
4444
with:
@@ -99,13 +99,13 @@ jobs:
9999
runs-on: ubuntu-latest
100100
needs: [configure]
101101
steps:
102-
- name: Prevent Re-run
103-
uses: ./.github/actions/prevent-rerun
104-
105102
- uses: actions/checkout@v4
106103
with:
107104
ref: ${{ needs.configure.outputs.version_commit }}
108105

106+
- name: Prevent Re-run
107+
uses: ./.github/workflows/actions/prevent-rerun
108+
109109
- name: Make Tarball
110110
run: |
111111
tar --owner=root --group=root -zcvf quarto-${{needs.configure.outputs.version}}.tar.gz *
@@ -120,13 +120,13 @@ jobs:
120120
runs-on: ubuntu-latest
121121
needs: [configure]
122122
steps:
123-
- name: Prevent Re-run
124-
uses: ./.github/actions/prevent-rerun
125-
126123
- uses: actions/checkout@v4
127124
with:
128125
ref: ${{ needs.configure.outputs.version_commit }}
129126

127+
- name: Prevent Re-run
128+
uses: ./.github/workflows/actions/prevent-rerun
129+
130130
- name: Configure
131131
run: |
132132
./configure.sh
@@ -156,13 +156,13 @@ jobs:
156156
runs-on: ubuntu-latest
157157
needs: [configure]
158158
steps:
159-
- name: Prevent Re-run
160-
uses: ./.github/actions/prevent-rerun
161-
162159
- uses: actions/checkout@v4
163160
with:
164161
ref: ${{ needs.configure.outputs.version_commit }}
165162

163+
- name: Prevent Re-run
164+
uses: ./.github/workflows/actions/prevent-rerun
165+
166166
- name: Configure
167167
run: |
168168
./configure.sh
@@ -192,13 +192,13 @@ jobs:
192192
runs-on: ubuntu-latest
193193
needs: [configure]
194194
steps:
195-
- name: Prevent Re-run
196-
uses: ./.github/actions/prevent-rerun
197-
198195
- uses: actions/checkout@v4
199196
with:
200197
ref: ${{ needs.configure.outputs.version_commit }}
201198

199+
- name: Prevent Re-run
200+
uses: ./.github/workflows/actions/prevent-rerun
201+
202202
- name: Configure
203203
run: |
204204
./configure.sh
@@ -239,13 +239,13 @@ jobs:
239239
runs-on: ubuntu-latest
240240
needs: [configure]
241241
steps:
242-
- name: Prevent Re-run
243-
uses: ./.github/actions/prevent-rerun
244-
245242
- uses: actions/checkout@v4
246243
with:
247244
ref: ${{ needs.configure.outputs.version_commit }}
248245

246+
- name: Prevent Re-run
247+
uses: ./.github/workflows/actions/prevent-rerun
248+
249249
- name: Configure
250250
run: |
251251
./configure.sh
@@ -272,13 +272,13 @@ jobs:
272272
runs-on: ubuntu-latest
273273
needs: [configure]
274274
steps:
275-
- name: Prevent Re-run
276-
uses: ./.github/actions/prevent-rerun
277-
278275
- uses: actions/checkout@v4
279276
with:
280277
ref: ${{ needs.configure.outputs.version_commit }}
281278

279+
- name: Prevent Re-run
280+
uses: ./.github/workflows/actions/prevent-rerun
281+
282282
- name: Configure
283283
run: |
284284
./configure.sh
@@ -305,8 +305,14 @@ jobs:
305305
runs-on: ubuntu-latest
306306
needs: [configure, make-tarball]
307307
steps:
308+
- uses: actions/checkout@v4
309+
with:
310+
ref: ${{ needs.configure.outputs.version_commit }}
311+
sparse-checkout: |
312+
.github
313+
308314
- name: Prevent Re-run
309-
uses: ./.github/actions/prevent-rerun
315+
uses: ./.github/workflows/actions/prevent-rerun
310316

311317
- uses: actions/download-artifact@v4
312318
with:
@@ -328,18 +334,17 @@ jobs:
328334
needs: [configure]
329335

330336
steps:
337+
- uses: actions/checkout@v4
338+
with:
339+
ref: ${{ needs.configure.outputs.version_commit }}
340+
331341
- name: Prevent Re-run
332-
uses: ./.github/actions/prevent-rerun
342+
uses: ./.github/workflows/actions/prevent-rerun
333343

334344
- name: Configure Rust Tools
335345
run: |
336346
rustup.exe toolchain install 1.63.0 --component rustfmt --component clippy --no-self-update
337347
rustup.exe default 1.63.0
338-
339-
- uses: actions/checkout@v4
340-
with:
341-
ref: ${{ needs.configure.outputs.version_commit }}
342-
343348
- name: Configure
344349
run: |
345350
.\configure.cmd
@@ -411,8 +416,14 @@ jobs:
411416
runs-on: windows-latest
412417
needs: [configure, make-installer-win]
413418
steps:
419+
- uses: actions/checkout@v4
420+
with:
421+
ref: ${{ needs.configure.outputs.version_commit }}
422+
sparse-checkout: |
423+
.github
424+
414425
- name: Prevent Re-run
415-
uses: ./.github/actions/prevent-rerun
426+
uses: ./.github/workflows/actions/prevent-rerun
416427

417428
- uses: actions/download-artifact@v4
418429
with:
@@ -430,13 +441,13 @@ jobs:
430441
runs-on: macos-latest
431442
needs: [configure]
432443
steps:
433-
- name: Prevent Re-run
434-
uses: ./.github/actions/prevent-rerun
435-
436444
- uses: actions/checkout@v4
437445
with:
438446
ref: ${{ needs.configure.outputs.version_commit }}
439447

448+
- name: Prevent Re-run
449+
uses: ./.github/workflows/actions/prevent-rerun
450+
440451
- name: Configure
441452
run: |
442453
./configure.sh
@@ -498,6 +509,12 @@ jobs:
498509
runs-on: macos-latest
499510
needs: [configure, make-installer-mac]
500511
steps:
512+
- uses: actions/checkout@v4
513+
with:
514+
ref: ${{ needs.configure.outputs.version_commit }}
515+
sparse-checkout: |
516+
.github
517+
501518
- name: Prevent Re-run
502519
uses: ./.github/actions/prevent-rerun
503520

@@ -536,8 +553,15 @@ jobs:
536553
]
537554

538555
steps:
556+
- uses: actions/checkout@v4
557+
with:
558+
ref: ${{ needs.configure.outputs.version_commit }}
559+
path: quarto-cli
560+
sparse-checkout: |
561+
.github
562+
539563
- name: Prevent Re-run
540-
uses: ./.github/actions/prevent-rerun
564+
uses: ./quarto-cli/.github/actions/prevent-rerun
541565

542566
- name: Download Artifacts
543567
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)