Skip to content

Commit

Permalink
the dist needs to be commit as well...
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Mar 13, 2024
1 parent 77833a4 commit 841b213
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/actions/check-submodules/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27978,8 +27978,17 @@ const checkSubmodules = async function () {
if (nonCrtRepo.test(submodule.name)) {
const isOnMain = await isAncestor(diff.thisCommit, 'origin/main', submodule.path);
if (!isOnMain) {
core.setFailed(`Submodule ${submodule.name} is using a branch`);
return;
if (/^(aws-lc)$/.test(submodule.name)) {
// for aws-lc we also use fips-2022-11-02 branch for FIPS support.
const isOnFIPS = await isAncestor(diff.thisCommit, 'origin/fips-2022-11-02', submodule.path);
if (!isOnFIPS) {
core.setFailed(`Submodule ${submodule.name} is using a branch`);
return;
}
} else {
core.setFailed(`Submodule ${submodule.name} is using a branch`);
return;
}
}
} else {
core.setFailed(`Submodule ${submodule.name} is not using a tagged release`);
Expand Down

0 comments on commit 841b213

Please sign in to comment.