Skip to content

Commit

Permalink
feat(api): bypass dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Jun 10, 2024
1 parent ab9d925 commit 694ef8a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import * as core from '@actions/core';
import Api from '@/api';
import { unpackInputs } from '@/utils';

const DEPBOT: string = 'dependabot';

Check failure on line 5 in src/main.ts

View workflow job for this annotation

GitHub Actions / TypeScript Tests

Type string trivially inferred from a string literal, remove type annotation

/**
* The main function for the action.
*
Expand All @@ -10,6 +12,10 @@ import { unpackInputs } from '@/utils';
export async function run(): Promise<void> {
try {
const inputs = unpackInputs();
if (inputs.ref.startsWith(DEPBOT)) {
return;
}

const inputsJSON = JSON.stringify(inputs, null, 2);
core.info(`Workflow inputs: ${inputsJSON}`);

Expand Down

0 comments on commit 694ef8a

Please sign in to comment.