We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bae7fee commit 7a6bfc6Copy full SHA for 7a6bfc6
src/main.ts
@@ -57,10 +57,11 @@ export async function run(): Promise<void> {
57
if (core.getInput('strict') === 'true') {
58
swiftlintArgs.push('--strict')
59
}
60
- await exec.exec(
+ const returnCode = await exec.exec(
61
path.join(portableSwiftlintDir, 'swiftlint'),
62
swiftlintArgs,
63
{
64
+ ignoreReturnCode: true,
65
listeners: {
66
stdout: (data: Buffer) => {
67
stdout += data.toString()
@@ -96,6 +97,8 @@ export async function run(): Promise<void> {
96
97
startColumn: entry.character
98
})
99
100
+
101
+ process.exit(returnCode)
102
} catch (error) {
103
// Fail the workflow run if an error occurs
104
if (error instanceof Error) core.setFailed(error.message)
0 commit comments