Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
fix: add deprecation warning to workflow run (#1)
Browse files Browse the repository at this point in the history
docs: add migration instructions to README
  • Loading branch information
chingor13 committed May 13, 2024
1 parent a37ac6e commit edb78cf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# Release Please Action
# [DEPRECATED] Release Please Action - please use https://github.com/googleapis/release-please-action

[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)

Automate releases with Conventional Commit Messages.

## Migration

> Development has moved to https://github.com/googleapis/release-please-action. This repository remains
here to support legacy references to google-github-actions/release-please-action.

In your GitHub actions workflow, please change `google-github-actions/release-please-action` to `googleapis/release-please-action`.

## Basic Configuration

1. Create a `.github/workflows/release-please.yml` file with these contents:
Expand Down
17 changes: 13 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
// limitations under the License.

import * as core from '@actions/core';
import {GitHub, Manifest, CreatedRelease, PullRequest, VERSION} from 'release-please';
import {
GitHub,
Manifest,
CreatedRelease,
PullRequest,
VERSION,
} from 'release-please';

const DEFAULT_CONFIG_FILE = 'release-please-config.json';
const DEFAULT_MANIFEST_FILE = '.release-please-manifest.json';
Expand Down Expand Up @@ -115,7 +121,10 @@ function loadOrBuildManifest(
}

export async function main() {
core.info(`Running release-please version: ${VERSION}`)
core.warning(
'google-github-actions/release-please-action is deprecated, please use googleapis/release-please-action instead.'
);
core.info(`Running release-please version: ${VERSION}`);
const inputs = parseInputs();
const github = await getGitHubInstance(inputs);

Expand Down Expand Up @@ -207,6 +216,6 @@ function outputPRs(prs: (PullRequest | undefined)[]) {

if (require.main === module) {
main().catch(err => {
core.setFailed(`release-please failed: ${err.message}`)
})
core.setFailed(`release-please failed: ${err.message}`);
});
}

0 comments on commit edb78cf

Please sign in to comment.