Skip to content

Commit

Permalink
test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sqin2019 committed Aug 29, 2023
1 parent 3a2663f commit fe237c6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,11 @@ jobs:
const req = fs.readFileSync(toolOutFilename, { encoding: "utf8" });
const body = `**\`Access on Demand\`** - 🟩 **\`Tool\`** request cleanup succeeded.
<details>
<summary>Details</summary>
Executed "cleanup" commands in the request below, or skipped if commands not found.
\`\`\`
${req}
\`\`\`
Expand Down Expand Up @@ -167,12 +169,15 @@ jobs:
const error = fs.readFileSync(toolErrFilename, { encoding: "utf8" });
const body = `**\`Access on Demand\`** - 🟥 **\`Tool\`** request cleanup failed.
<details>
<summary>Details</summary>
Failed to execute "cleanup" commands in the request below.
\`\`\`
${req}
\`\`\`
Error:
\`\`\`
${error}
Expand Down Expand Up @@ -211,9 +216,11 @@ jobs:
const req = fs.readFileSync(iamOutFilename, { encoding: "utf8" });
const body = `**\`Access on Demand\`** - 🟩 **\`IAM\`** request cleanup succeeded.
<details>
<summary>Details</summary>
Removed bindings in the request below.
\`\`\`
${req}
\`\`\`
Expand Down Expand Up @@ -241,12 +248,15 @@ jobs:
const error = fs.readFileSync(iamErrFilename, { encoding: "utf8" });
const body = `**\`Access on Demand\`** - 🟥 **\`IAM\`** request cleanup failed.
<details>
<summary>Details</summary>
Failed to cleanup IAM polices of the resources in the request below.
\`\`\`
${req}
\`\`\`
Error:
\`\`\`
${error}
Expand Down

0 comments on commit fe237c6

Please sign in to comment.