Skip to content

Commit

Permalink
remove raise on empty params to fix the integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Gordon committed Sep 28, 2021
1 parent 6e57db3 commit a74f168
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('run', () => {
test('it fails the workflow', async () => {
await run(context)

expect(core.setFailed).toHaveBeenCalled()
expect(core.setFailed).not.toHaveBeenCalled()
expect(core.info).toHaveBeenCalledWith(
"Dependabot Updater Action does not support 'issue_created' events."
)
Expand Down
2 changes: 0 additions & 2 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.

2 changes: 0 additions & 2 deletions src/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ export function getJobParameters(ctx: Context): JobParameters | null {
function fromWorkflowInputs(ctx: Context): JobParameters {
const evt = ctx.payload as WorkflowDispatchEvent

core.debug(JSON.stringify(evt.inputs))

const dependabotApiDockerUrl =
evt.inputs.dependabotApiDockerUrl || evt.inputs.dependabotApiUrl

Expand Down
1 change: 0 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export async function run(context: Context): Promise<void> {
// Decode JobParameters:
const params = getJobParameters(context)
if (params === null) {
core.setFailed('no parameters!')
return // No parameters, nothing to do
}

Expand Down

0 comments on commit a74f168

Please sign in to comment.