Skip to content

Commit

Permalink
Remove debug, fix weird error dropping
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-matt-hillsdon committed Apr 16, 2024
1 parent feb756c commit a3d1f5c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { contextFromEnvironment, generateVersion } from './version'
* @returns {Promise<void>} Resolves when the action is complete.
*/
export async function run(): Promise<void> {
console.log('XXX', process.env.GITHUB_REF)
try {
const packageJsonPath = 'package.json'
const packageJson = JSON.parse(
Expand All @@ -29,6 +28,6 @@ export async function run(): Promise<void> {
)
}
} catch (error) {
if (error instanceof Error) core.setFailed(error.message)
core.setFailed(error instanceof Error ? error.message : 'Unknown error')
}
}

0 comments on commit a3d1f5c

Please sign in to comment.