Skip to content

Commit

Permalink
Create LICENSE
Browse files Browse the repository at this point in the history
  • Loading branch information
XVincentX committed Nov 26, 2019
1 parent 9fb0b9e commit 765eedc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
on: push
on:
- push
- pull_request
name: Spectral Lint
jobs:
spectralChecks:
Expand Down
7 changes: 5 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Config } from './config';
import { runSpectral, createSpectral } from './spectral';
import { createGithubCheck, createOctokitInstance, getRepositoryInfoFromEvent, updateGithubCheck } from './octokit';

import { error, info } from '@actions/core';
import { error, info, setFailed } from '@actions/core';
import * as IOEither from 'fp-ts/lib/IOEither';
import * as IO from 'fp-ts/lib/IO';
import * as TaskEither from 'fp-ts/lib/TaskEither';
Expand Down Expand Up @@ -102,7 +102,10 @@ const program = pipe(
annotations.findIndex(f => f.annotation_level === 'failure') === -1 ? 'success' : 'failure'
)
),
TaskEither.orElse(e => updateGithubCheck(octokit, GITHUB_ACTION, check, event, [], 'failure', e.message))
TaskEither.orElse(e => {
setFailed(e.message);
return updateGithubCheck(octokit, GITHUB_ACTION, check, event, [], 'failure', e.message);
})
)
)
)
Expand Down

0 comments on commit 765eedc

Please sign in to comment.