Skip to content

Commit 2225d27

Browse files
committed
Always check out the embedded compiler along with Dart Sass
1 parent 37ddc09 commit 2225d27

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,20 @@ jobs:
7373
uses: sass/clone-linked-repo@v1
7474
with: {repo: sass/embedded-protocol, default-ref: null}
7575

76-
- name: Check out the embedded compiler
77-
uses: sass/clone-linked-repo@v1
78-
with: {repo: sass/dart-sass-embedded, default-ref: null}
79-
8076
- name: Check out Dart Sass
77+
id: clone-dart-sass
8178
uses: sass/clone-linked-repo@v1
8279
with: {repo: sass/dart-sass, default-ref: null}
8380

81+
- name: Check out the embedded compiler
82+
uses: sass/clone-linked-repo@v1
83+
with:
84+
repo: sass/dart-sass-embedded
85+
# If we check out a specific version of Dart Sass, always check out
86+
# the embedded compiler as well so we can actually use that Dart Sass
87+
# version.
88+
default-ref: ${{ !steps.clone-dart-sass.skip && 'main' || null }}
89+
8490
- name: Link the embedded compiler to Dart Sass
8591
run: |
8692
if [[ -d dart-sass ]]; then
@@ -135,14 +141,20 @@ jobs:
135141
uses: sass/clone-linked-repo@v1
136142
with: {repo: sass/embedded-protocol, default-ref: null}
137143

138-
- name: Check out the embedded compiler
139-
uses: sass/clone-linked-repo@v1
140-
with: {repo: sass/dart-sass-embedded, default-ref: null}
141-
142144
- name: Check out Dart Sass
145+
id: clone-dart-sass
143146
uses: sass/clone-linked-repo@v1
144147
with: {repo: sass/dart-sass, default-ref: null}
145148

149+
- name: Check out the embedded compiler
150+
uses: sass/clone-linked-repo@v1
151+
with:
152+
repo: sass/dart-sass-embedded
153+
# If we check out a specific version of Dart Sass, always check out
154+
# the embedded compiler as well so we can actually use that Dart Sass
155+
# version.
156+
default-ref: ${{ !steps.clone-dart-sass.skip && 'main' || null }}
157+
146158
- name: Link the embedded compiler to Dart Sass
147159
run: |
148160
if [[ -d dart-sass ]]; then

0 commit comments

Comments
 (0)