Skip to content

Commit

Permalink
Import updated (#996)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xp3gasus authored Jan 18, 2024
1 parent 4651a93 commit ee87097
Showing 1 changed file with 6 additions and 6 deletions.
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

0 comments on commit ee87097

Please sign in to comment.