Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discord notification bug fix #1002

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions scripts/notification.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as core from '@actions/core'
import { info, setFailed, setOutput } from '@actions/core'

type Package = {
name: string
Expand Down Expand Up @@ -35,8 +35,8 @@ const embedTemplate: Embed = {
const main = () => {
try {
if (!process.argv[2]) {
core.info('There is no release to notify')
core.setOutput('success', false)
info('There is no release to notify')
setOutput('success', false)
return
}
const publishedPackages = JSON.parse(process.argv[2]) as Package[]
Expand All @@ -49,10 +49,10 @@ const main = () => {
.join('\n'),
}

core.setOutput('embeds', [embed])
core.setOutput('success', true)
setOutput('embeds', [embed])
setOutput('success', true)
} catch (e) {
core.setFailed(`Error preparing message: ${e}`)
setFailed(`Error preparing message: ${e}`)
}
}

Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"node"
],
"outDir": "lib",
"module": "esnext",
"module": "CommonJS",
"target": "es6",
"lib": [
"es6",
Expand All @@ -40,4 +40,4 @@
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
}
}
}
Loading