Skip to content

Commit

Permalink
feat(api): bypass dependabot (#37)
Browse files Browse the repository at this point in the history
* feat(api): bypass dependabot

* chore(dist): bundle the package

* feat(api): make linter happy

* chore(api): make the expr shorter
  • Loading branch information
clearloop authored Jun 10, 2024
1 parent ab9d925 commit 0925fe2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 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 = 'dependabot';

/**
* The main function for the action.
*
Expand All @@ -10,6 +12,8 @@ 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 0925fe2

Please sign in to comment.