From 28fa4848947e0faa7fa50647691d01477589d5e9 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Wed, 12 May 2021 10:26:26 +0900 Subject: [PATCH] feat: add deprecation warning --- README.md | 5 +++++ dist/index.js | 2 ++ src/main.ts | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 9c6b6ab..b2c92b7 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,11 @@ [![CI](https://github.com/peter-evans/create-pull-request/workflows/CI/badge.svg)](https://github.com/peter-evans/create-pull-request/actions?query=workflow%3ACI) [![GitHub Marketplace](https://img.shields.io/badge/Marketplace-Create%20Pull%20Request-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=)](https://github.com/marketplace/actions/create-pull-request) +:warning::warning::warning: +This action's default branch has been renamed to `main`. +Referencing this action with `@master` is deprecated and will stop working after June 30th 2021 +:warning::warning::warning: + A GitHub action to create a pull request for changes to your repository in the actions workspace. Changes to a repository in the Actions workspace persist between steps in a workflow. diff --git a/dist/index.js b/dist/index.js index b1d6be6..86faa78 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1063,6 +1063,8 @@ const utils = __importStar(__nccwpck_require__(918)); function run() { return __awaiter(this, void 0, void 0, function* () { try { + core.warning(`This action's default branch has been renamed to "main"`); + core.warning(`Referencing this action with "@master" is deprecated and will stop working after June 30th 2021`); const inputs = { token: core.getInput('token'), path: core.getInput('path'), diff --git a/src/main.ts b/src/main.ts index 157659b..04c4049 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,6 +5,11 @@ import * as utils from './utils' async function run(): Promise { try { + core.warning(`This action's default branch has been renamed to "main"`) + core.warning( + `Referencing this action with "@master" is deprecated and will stop working after June 30th 2021` + ) + const inputs: Inputs = { token: core.getInput('token'), path: core.getInput('path'),