Skip to content

Commit 841b213

Browse files
committed
the dist needs to be commit as well...
1 parent 77833a4 commit 841b213

File tree

1 file changed

+11
-2
lines changed
  • .github/actions/check-submodules/dist

1 file changed

+11
-2
lines changed

.github/actions/check-submodules/dist/index.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -27978,8 +27978,17 @@ const checkSubmodules = async function () {
2797827978
if (nonCrtRepo.test(submodule.name)) {
2797927979
const isOnMain = await isAncestor(diff.thisCommit, 'origin/main', submodule.path);
2798027980
if (!isOnMain) {
27981-
core.setFailed(`Submodule ${submodule.name} is using a branch`);
27982-
return;
27981+
if (/^(aws-lc)$/.test(submodule.name)) {
27982+
// for aws-lc we also use fips-2022-11-02 branch for FIPS support.
27983+
const isOnFIPS = await isAncestor(diff.thisCommit, 'origin/fips-2022-11-02', submodule.path);
27984+
if (!isOnFIPS) {
27985+
core.setFailed(`Submodule ${submodule.name} is using a branch`);
27986+
return;
27987+
}
27988+
} else {
27989+
core.setFailed(`Submodule ${submodule.name} is using a branch`);
27990+
return;
27991+
}
2798327992
}
2798427993
} else {
2798527994
core.setFailed(`Submodule ${submodule.name} is not using a tagged release`);

0 commit comments

Comments
 (0)