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

Commit edb78cf

Browse files
authoredMay 13, 2024··
fix: add deprecation warning to workflow run (#1)
docs: add migration instructions to README
1 parent a37ac6e commit edb78cf

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed
 

‎README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
# Release Please Action
1+
# [DEPRECATED] Release Please Action - please use https://github.com/googleapis/release-please-action
22

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

55
Automate releases with Conventional Commit Messages.
66

7+
## Migration
8+
9+
> Development has moved to https://github.com/googleapis/release-please-action. This repository remains
10+
here to support legacy references to google-github-actions/release-please-action.
11+
12+
In your GitHub actions workflow, please change `google-github-actions/release-please-action` to `googleapis/release-please-action`.
13+
714
## Basic Configuration
815

916
1. Create a `.github/workflows/release-please.yml` file with these contents:

‎src/index.ts

+13-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
// limitations under the License.
1414

1515
import * as core from '@actions/core';
16-
import {GitHub, Manifest, CreatedRelease, PullRequest, VERSION} from 'release-please';
16+
import {
17+
GitHub,
18+
Manifest,
19+
CreatedRelease,
20+
PullRequest,
21+
VERSION,
22+
} from 'release-please';
1723

1824
const DEFAULT_CONFIG_FILE = 'release-please-config.json';
1925
const DEFAULT_MANIFEST_FILE = '.release-please-manifest.json';
@@ -115,7 +121,10 @@ function loadOrBuildManifest(
115121
}
116122

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

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

208217
if (require.main === module) {
209218
main().catch(err => {
210-
core.setFailed(`release-please failed: ${err.message}`)
211-
})
219+
core.setFailed(`release-please failed: ${err.message}`);
220+
});
212221
}

0 commit comments

Comments
 (0)
This repository has been archived.