Skip to content

Commit

Permalink
Release v3.6.0 (#366)
Browse files Browse the repository at this point in the history
Co-authored-by: simoneb <actions@users.noreply.github.com>
  • Loading branch information
optic-release-automation[bot] and simoneb committed Feb 8, 2023
1 parent a4226d3 commit 90d4d9c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
27 changes: 24 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2421,7 +2421,7 @@ const core = __nccwpck_require__(186)
*/
function logActionRefWarning() {
const actionRef = process.env.GITHUB_ACTION_REF
const repoName = process.env.GITHUB_REPOSITORY
const repoName = process.env.GITHUB_ACTION_REPOSITORY

if (actionRef === 'main' || actionRef === 'master') {
core.warning(
Expand All @@ -2437,8 +2437,29 @@ function logActionRefWarning() {
}
}

/**
* Displays warning message if the repository is under the nearform organisation
*/
function logRepoWarning() {
const actionRepo = process.env.GITHUB_ACTION_REPOSITORY
const [repoOrg, repoName] = actionRepo.split('/')
const newOrg = 'nearform-actions'

if (repoOrg != newOrg) {
core.warning(
`The '${repoName}' action, no longer exists under the '${repoOrg}' organisation.\n` +
`Please update it to '${newOrg}', you can do this\n` +
`by updating your Github Workflow file from:\n\n` +
` uses: '${repoOrg}/${repoName}'\n\n` +
`to:\n\n` +
` uses: '${newOrg}/${repoName}'\n\n`
)
}
}

module.exports = {
logActionRefWarning
logActionRefWarning,
logRepoWarning
}


Expand Down Expand Up @@ -3235,7 +3256,7 @@ module.exports = require("util");
/***/ ((module) => {

"use strict";
module.exports = JSON.parse('{"name":"github-action-merge-dependabot","version":"3.5.4","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 <simone.busoli@nearform.com>"],"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.2.2","semver":"^7.3.8"},"devDependencies":{"@vercel/ncc":"^0.36.0","eslint":"^8.31.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","husky":"^8.0.2","prettier":"^2.8.1","proxyquire":"^2.1.3","sinon":"^15.0.1","tap":"^16.3.2"}}');
module.exports = JSON.parse('{"name":"github-action-merge-dependabot","version":"3.6.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 <simone.busoli@nearform.com>"],"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.2.2","semver":"^7.3.8"},"devDependencies":{"@vercel/ncc":"^0.36.1","eslint":"^8.33.0","eslint-config-prettier":"^8.6.0","eslint-plugin-prettier":"^4.2.1","husky":"^8.0.3","prettier":"^2.8.3","proxyquire":"^2.1.3","sinon":"^15.0.1","tap":"^16.3.4"}}');

/***/ })

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "github-action-merge-dependabot",
"version": "3.5.4",
"version": "3.6.0",
"description": "A GitHub action to automatically merge and approve Dependabot pull requests",
"main": "src/index.js",
"scripts": {
Expand Down

0 comments on commit 90d4d9c

Please sign in to comment.