Skip to content

Commit 7df233d

Browse files
committed
Summary fix
1 parent b32f139 commit 7df233d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "execute-whitelist-action",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "Action to whitelist executions",
55
"main": "index.ts",
66
"scripts": {

src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,18 @@ async function run() {
3131

3232
if (allowedUserIds.includes(userId)) {
3333
core.notice(`${styles.green.open}User ${styles.bold.open}${userId}${styles.bold.close} authorized this workflow run.${styles.green.close}`);
34-
core.summary.clear()
3534
core.summary.addHeading("Action Authorization");
3635
core.summary.addBreak()
3736
core.summary.addRaw("This workflow run is authorized by ");
3837
core.summary.addLink(`${username} (${userId})`, `https://github.com/${username}`)
3938
core.summary.addRaw(".");
40-
core.summary.write()
4139
} else {
4240
core.notice(`${styles.green.open}User ${styles.bold.open}${userId}${styles.bold.close} authorized this workflow run.${styles.green.close}`);
43-
core.summary.clear()
4441
core.summary.addHeading("Action Authorization Failure");
4542
core.summary.addBreak()
4643
core.summary.addRaw("This workflow run was executed by ");
4744
core.summary.addLink(`${username} (${userId})`, `https://github.com/${username}`)
4845
core.summary.addRaw(" and is unauthorized!");
49-
core.summary.write()
5046
throw new Error(`User ${styles.bold.open}${userId}${styles.bold.close} is not authorized to run this workflow. Aborting`);
5147
}
5248
} catch (error: any) {

0 commit comments

Comments
 (0)