@@ -73,14 +73,20 @@ jobs:
73
73
uses : sass/clone-linked-repo@v1
74
74
with : {repo: sass/embedded-protocol, default-ref: null}
75
75
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
-
80
76
- name : Check out Dart Sass
77
+ id : clone-dart-sass
81
78
uses : sass/clone-linked-repo@v1
82
79
with : {repo: sass/dart-sass, default-ref: null}
83
80
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
+
84
90
- name : Link the embedded compiler to Dart Sass
85
91
run : |
86
92
if [[ -d dart-sass ]]; then
@@ -135,14 +141,20 @@ jobs:
135
141
uses : sass/clone-linked-repo@v1
136
142
with : {repo: sass/embedded-protocol, default-ref: null}
137
143
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
-
142
144
- name : Check out Dart Sass
145
+ id : clone-dart-sass
143
146
uses : sass/clone-linked-repo@v1
144
147
with : {repo: sass/dart-sass, default-ref: null}
145
148
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
+
146
158
- name : Link the embedded compiler to Dart Sass
147
159
run : |
148
160
if [[ -d dart-sass ]]; then
0 commit comments