Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
- name: Test Local Action
id: test-action
uses: ./
with:

Check failure on line 59 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / GitHub Actions Test

Bad Error

Something bad happened
milliseconds: 1000
milliseconds: xxx

- name: Print Output
id: output
Expand Down
9 changes: 8 additions & 1 deletion 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.

10 changes: 9 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ export async function run(): Promise<void> {
.write()
} catch (error) {
// Fail the workflow run if an error occurs
if (error instanceof Error) core.setFailed(error.message)
if (error instanceof Error)
core.error('Something bad happened', {
title: 'Bad Error',
file: '.github/workflows/ci.yml',
startLine: 59,
startColumn: 11,
endColumn: 23
})
// core.setFailed(error.message)
}
}
Loading