Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
kty1965 committed Feb 15, 2024
1 parent f40338d commit 3839d9a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 26 deletions.
29 changes: 16 additions & 13 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46850,22 +46850,24 @@ async function run() {
existScopedIpAllowListEntries,
expectCidrEntries,
});
// const toDeleteResult = await deleteIpAllowListEntries({
// ipAllowListEntries: toDelete,
// octokit,
// });
const toDeleteResult = await deleteIpAllowListEntries({
ipAllowListEntries: toDelete,
octokit,
});
core.info(`toDelete: ${JSON.stringify(toDelete)}`);
core.info(`toDeleteResult: ${JSON.stringify(toDeleteResult)}`);

const toCreate = getToCreateIpAllowListEntries({
existScopedIpAllowListEntries,
expectCidrEntries,
});
// const toCreateResult = await createIpAllowListEntries({
// enterprise,
// cidrEntries: toCreate,
// octokit,
// });
const toCreateResult = await createIpAllowListEntries({
enterprise,
cidrEntries: toCreate,
octokit,
});
core.info(`toCreate: ${JSON.stringify(toCreate)}`);
core.info(`toCreateResult: ${JSON.stringify(toCreateResult)}`);

const toUpdateMergedIpAllowListEntries = getToUpdateIpAllowListEntries({
existScopedIpAllowListEntries,
Expand All @@ -46877,11 +46879,12 @@ async function run() {
isActive: cidrEntry.isActive,
});
});
// const toUpdateResult = await updateIpAllowListEntries({
// ipAllowListEntries: toUpdateMergedIpAllowListEntries,
// octokit,
// });
const toUpdateResult = await updateIpAllowListEntries({
ipAllowListEntries: toUpdateMergedIpAllowListEntries,
octokit,
});
core.info(`toUpdate: ${JSON.stringify(toUpdateMergedIpAllowListEntries)}`);
core.info(`toUpdateResult: ${JSON.stringify(toUpdateResult)}`);
} catch (err) {
core.setFailed(err);
}
Expand Down
29 changes: 16 additions & 13 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,24 @@ async function run() {
existScopedIpAllowListEntries,
expectCidrEntries,
});
// const toDeleteResult = await deleteIpAllowListEntries({
// ipAllowListEntries: toDelete,
// octokit,
// });
const toDeleteResult = await deleteIpAllowListEntries({
ipAllowListEntries: toDelete,
octokit,
});
core.info(`toDelete: ${JSON.stringify(toDelete)}`);
core.info(`toDeleteResult: ${JSON.stringify(toDeleteResult)}`);

const toCreate = getToCreateIpAllowListEntries({
existScopedIpAllowListEntries,
expectCidrEntries,
});
// const toCreateResult = await createIpAllowListEntries({
// enterprise,
// cidrEntries: toCreate,
// octokit,
// });
const toCreateResult = await createIpAllowListEntries({
enterprise,
cidrEntries: toCreate,
octokit,
});
core.info(`toCreate: ${JSON.stringify(toCreate)}`);
core.info(`toCreateResult: ${JSON.stringify(toCreateResult)}`);

const toUpdateMergedIpAllowListEntries = getToUpdateIpAllowListEntries({
existScopedIpAllowListEntries,
Expand All @@ -88,11 +90,12 @@ async function run() {
isActive: cidrEntry.isActive,
});
});
// const toUpdateResult = await updateIpAllowListEntries({
// ipAllowListEntries: toUpdateMergedIpAllowListEntries,
// octokit,
// });
const toUpdateResult = await updateIpAllowListEntries({
ipAllowListEntries: toUpdateMergedIpAllowListEntries,
octokit,
});
core.info(`toUpdate: ${JSON.stringify(toUpdateMergedIpAllowListEntries)}`);
core.info(`toUpdateResult: ${JSON.stringify(toUpdateResult)}`);
} catch (err) {
core.setFailed(err);
}
Expand Down

0 comments on commit 3839d9a

Please sign in to comment.