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

fix: add deprecation warning to workflow run #1

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}`);
});
}
Loading