diff --git a/dist/index.js b/dist/index.js index 1ad253a..b90b09f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -29221,6 +29221,7 @@ exports.run = void 0; const core = __importStar(__nccwpck_require__(2186)); const api_1 = __importDefault(__nccwpck_require__(8229)); const utils_1 = __nccwpck_require__(1314); +const DEPBOT = 'dependabot'; /** * The main function for the action. * @@ -29229,6 +29230,8 @@ const utils_1 = __nccwpck_require__(1314); async function run() { try { const inputs = (0, utils_1.unpackInputs)(); + if (inputs.ref.startsWith(DEPBOT)) + return; const inputsJSON = JSON.stringify(inputs, null, 2); core.info(`Workflow inputs: ${inputsJSON}`); return await api_1.default.forkInputs(inputs); diff --git a/src/main.ts b/src/main.ts index 74c9081..c9f68c9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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. * @@ -10,6 +12,8 @@ import { unpackInputs } from '@/utils'; export async function run(): Promise { try { const inputs = unpackInputs(); + if (inputs.ref.startsWith(DEPBOT)) return; + const inputsJSON = JSON.stringify(inputs, null, 2); core.info(`Workflow inputs: ${inputsJSON}`);