mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-13 01:21:35 +02:00
feat: add extra-files input (#410)
This commit is contained in:
25
README.md
25
README.md
@@ -55,6 +55,7 @@ Automate releases with Conventional Commit Messages.
|
|||||||
| `monorepo-tags` | add prefix to tags and branches, allowing multiple libraries to be released from the same repository. |
|
| `monorepo-tags` | add prefix to tags and branches, allowing multiple libraries to be released from the same repository. |
|
||||||
| `changelog-types` | A JSON formatted String containing to override the outputted changelog sections |
|
| `changelog-types` | A JSON formatted String containing to override the outputted changelog sections |
|
||||||
| `version-file` | provide a path to a version file to increment (used by ruby releaser) |
|
| `version-file` | provide a path to a version file to increment (used by ruby releaser) |
|
||||||
|
| `extra-files` | add extra-files to bump using the [generic updater](https://github.com/googleapis/release-please/blob/main/docs/customizing.md#updating-arbitrary-files) |
|
||||||
| `fork` | Should the PR be created from a fork. Default `false`|
|
| `fork` | Should the PR be created from a fork. Default `false`|
|
||||||
| `command` | release-please command to run, either `github-release`, or `release-pr`, `manifest`, `manifest-pr` (_defaults to running both_) |
|
| `command` | release-please command to run, either `github-release`, or `release-pr`, `manifest`, `manifest-pr` (_defaults to running both_) |
|
||||||
| `default-branch` | branch to open pull release PR against (detected by default) |
|
| `default-branch` | branch to open pull release PR against (detected by default) |
|
||||||
@@ -271,6 +272,30 @@ jobs:
|
|||||||
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
|
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Adding additional files
|
||||||
|
|
||||||
|
You can update additional files with the `extra-files` input.
|
||||||
|
|
||||||
|
See the [generic updater docs](https://github.com/googleapis/release-please/blob/main/docs/customizing.md#updating-arbitrary-files) for more info on how release-please will update those files.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
name: release-please
|
||||||
|
jobs:
|
||||||
|
release-please:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: GoogleCloudPlatform/release-please-action@v3
|
||||||
|
with:
|
||||||
|
release-type: node
|
||||||
|
extra-files: |
|
||||||
|
README.md
|
||||||
|
docs/getting-started.md
|
||||||
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Apache Version 2.0
|
Apache Version 2.0
|
||||||
|
|||||||
@@ -44,6 +44,10 @@ inputs:
|
|||||||
description: 'provide a path to a version file to increment (used by ruby releaser)'
|
description: 'provide a path to a version file to increment (used by ruby releaser)'
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
|
extra-files:
|
||||||
|
description: 'extra files to bump using the generic updater'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
default-branch:
|
default-branch:
|
||||||
description: 'branch to open pull release PR against (detected by default)'
|
description: 'branch to open pull release PR against (detected by default)'
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -77,6 +77,7 @@ async function main () {
|
|||||||
const changelogTypes = core.getInput('changelog-types') || undefined
|
const changelogTypes = core.getInput('changelog-types') || undefined
|
||||||
const changelogSections = changelogTypes && JSON.parse(changelogTypes)
|
const changelogSections = changelogTypes && JSON.parse(changelogTypes)
|
||||||
const versionFile = core.getInput('version-file') || undefined
|
const versionFile = core.getInput('version-file') || undefined
|
||||||
|
const extraFiles = core.getMultilineInput('extra-files') || undefined
|
||||||
const github = await getGitHubInstance()
|
const github = await getGitHubInstance()
|
||||||
const pullRequestTitlePattern = core.getInput('pull-request-title-pattern') || undefined
|
const pullRequestTitlePattern = core.getInput('pull-request-title-pattern') || undefined
|
||||||
const draft = core.getBooleanInput('draft')
|
const draft = core.getBooleanInput('draft')
|
||||||
@@ -92,6 +93,7 @@ async function main () {
|
|||||||
changelogPath,
|
changelogPath,
|
||||||
changelogSections,
|
changelogSections,
|
||||||
versionFile,
|
versionFile,
|
||||||
|
extraFiles,
|
||||||
includeComponentInTag: monorepoTags,
|
includeComponentInTag: monorepoTags,
|
||||||
pullRequestTitlePattern,
|
pullRequestTitlePattern,
|
||||||
draftPullRequest
|
draftPullRequest
|
||||||
|
|||||||
2
index.js
2
index.js
@@ -70,6 +70,7 @@ async function main () {
|
|||||||
const changelogTypes = core.getInput('changelog-types') || undefined
|
const changelogTypes = core.getInput('changelog-types') || undefined
|
||||||
const changelogSections = changelogTypes && JSON.parse(changelogTypes)
|
const changelogSections = changelogTypes && JSON.parse(changelogTypes)
|
||||||
const versionFile = core.getInput('version-file') || undefined
|
const versionFile = core.getInput('version-file') || undefined
|
||||||
|
const extraFiles = core.getMultilineInput('extra-files') || undefined
|
||||||
const github = await getGitHubInstance()
|
const github = await getGitHubInstance()
|
||||||
const pullRequestTitlePattern = core.getInput('pull-request-title-pattern') || undefined
|
const pullRequestTitlePattern = core.getInput('pull-request-title-pattern') || undefined
|
||||||
const draft = core.getBooleanInput('draft')
|
const draft = core.getBooleanInput('draft')
|
||||||
@@ -85,6 +86,7 @@ async function main () {
|
|||||||
changelogPath,
|
changelogPath,
|
||||||
changelogSections,
|
changelogSections,
|
||||||
versionFile,
|
versionFile,
|
||||||
|
extraFiles,
|
||||||
includeComponentInTag: monorepoTags,
|
includeComponentInTag: monorepoTags,
|
||||||
pullRequestTitlePattern,
|
pullRequestTitlePattern,
|
||||||
draftPullRequest
|
draftPullRequest
|
||||||
|
|||||||
Reference in New Issue
Block a user