Skip to content

Commit

Permalink
Remove debug, fix weird error dropping (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-matt-hillsdon authored Apr 16, 2024
1 parent feb756c commit 9977605
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

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 9977605

Please sign in to comment.