From de04fc4e5edd96c7daea3fd4e5b3475629be5690 Mon Sep 17 00:00:00 2001 From: Guilherme Kammsetzer <6863574+guilhermelimak@users.noreply.github.com> Date: Wed, 21 Jun 2023 16:07:38 -0300 Subject: [PATCH] feat: add missing warning when action is skipped (#438) * feat: add step to warn users if action is skipped * fix: remove conditionals from action and always run * feat: re-add conditional to fetch metadata action --- action.yml | 1 - dist/index.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 4295f372..8665bcc4 100644 --- a/action.yml +++ b/action.yml @@ -53,7 +53,6 @@ runs: skip-verification : ${{ inputs.skip-verification }} - name: Merge/approve PR uses: actions/github-script@v6 - if: github.event_name == 'pull_request' && (github.actor == 'dependabot[bot]' || inputs.skip-verification == 'true') with: github-token: ${{ inputs.github-token }} script: | diff --git a/dist/index.js b/dist/index.js index fad822e2..0339f760 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3329,7 +3329,7 @@ module.exports = require("util"); /***/ ((module) => { "use strict"; -module.exports = JSON.parse('{"name":"github-action-merge-dependabot","version":"3.8.0","description":"A GitHub action to automatically merge and approve Dependabot pull requests","main":"src/index.js","scripts":{"build":"ncc build src/index.js","lint":"eslint .","test":"tap test/**.test.js","prepare":"husky install"},"author":{"name":"Salman Mitha","email":"SalmanMitha@gmail.com"},"contributors":["Simone Busoli "],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/github-action-merge-dependabot.git"},"bugs":{"url":"https://github.com/fastify/github-action-merge-dependabot/issues"},"homepage":"https://github.com/fastify/github-action-merge-dependabot#readme","dependencies":{"@actions/core":"^1.9.1","@actions/github":"^5.1.1","actions-toolkit":"github:nearform/actions-toolkit","gitdiff-parser":"^0.3.1","semver":"^7.5.1"},"devDependencies":{"@vercel/ncc":"^0.36.1","eslint":"^8.41.0","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","husky":"^8.0.3","prettier":"^2.8.8","proxyquire":"^2.1.3","sinon":"^15.1.0","tap":"^16.3.4"}}'); +module.exports = JSON.parse('{"name":"github-action-merge-dependabot","version":"3.8.0","description":"A GitHub action to automatically merge and approve Dependabot pull requests","main":"src/index.js","scripts":{"build":"ncc build src/index.js","lint":"eslint .","test":"tap test/**.test.js","prepare":"husky install"},"author":{"name":"Salman Mitha","email":"SalmanMitha@gmail.com"},"contributors":["Simone Busoli "],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/github-action-merge-dependabot.git"},"bugs":{"url":"https://github.com/fastify/github-action-merge-dependabot/issues"},"homepage":"https://github.com/fastify/github-action-merge-dependabot#readme","dependencies":{"@actions/core":"^1.9.1","@actions/github":"^5.1.1","actions-toolkit":"github:nearform/actions-toolkit","gitdiff-parser":"^0.3.1","semver":"^7.5.1"},"devDependencies":{"@vercel/ncc":"^0.36.1","eslint":"^8.42.0","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","husky":"^8.0.3","prettier":"^2.8.8","proxyquire":"^2.1.3","sinon":"^15.1.0","tap":"^16.3.6"}}'); /***/ })