2 Commits

Author SHA1 Message Date
jimehbot[bot]
094ab0890e chore(main): release 1.0.3 (#19)
Co-authored-by: jimehbot[bot] <132453784+jimehbot[bot]@users.noreply.github.com>
2024-05-13 10:07:10 +01:00
72e49f5d6f fix(deps): use new name for Google's release please action (#18) 2024-05-13 10:06:22 +01:00
5 changed files with 46 additions and 57 deletions

View File

@@ -1,3 +1,3 @@
{ {
".": "1.0.2" ".": "1.0.3"
} }

View File

@@ -19,7 +19,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
steps: steps:
- uses: jimeh/release-please-manifest-action@v1 # TOOD: Switch back to @v1 once once v1.0.3 is released.
- uses: jimeh/release-please-manifest-action@main
id: release id: release
with: with:
app-id: ${{ secrets.RELEASE_BOT_APP_ID }} app-id: ${{ secrets.RELEASE_BOT_APP_ID }}

View File

@@ -1,5 +1,12 @@
# Changelog # Changelog
## [1.0.3](https://github.com/jimeh/release-please-manifest-action/compare/v1.0.2...v1.0.3) (2024-05-13)
### Bug Fixes
* **deps:** use new name for Google's release please action ([#18](https://github.com/jimeh/release-please-manifest-action/issues/18)) ([72e49f5](https://github.com/jimeh/release-please-manifest-action/commit/72e49f5d6f009b0e0c4faff0c835703ee9ee3093))
## [1.0.2](https://github.com/jimeh/release-please-manifest-action/compare/v1.0.1...v1.0.2) (2023-05-18) ## [1.0.2](https://github.com/jimeh/release-please-manifest-action/compare/v1.0.1...v1.0.2) (2023-05-18)

View File

@@ -221,21 +221,18 @@ _Note: Outputs are not included in this equivalence example._
## Inputs ## Inputs
| parameter | description | required | default | | parameter | description | required | default |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------------- | | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------------------------------------- |
| token | GitHub token used to authenticate. | `false` | ${{ github.token }} | | token | GitHub token used to authenticate. | `false` | ${{ github.token }} |
| app-id | ID of the GitHub App to use for authentication. If set, takes precedence over token input. | `false` | | | app-id | ID of the GitHub App to use for authentication. If set, takes precedence over token input. | `false` | |
| private-key | Private key of the GitHub App (can be Base64 encoded). Required when app-id is provided. | `false` | | | private-key | Private key of the GitHub App (can be Base64 encoded). Required when app-id is provided. | `false` | |
| installation-retrieval-mode | The mode used to retrieve the installation for which the token will be requested. Must be one of: id, organization, repository, or user. For details see: https://github.com/tibdex/github-app-token | `false` | repository | | installation-id | ID of the installation for which the app token will be requested. Defaults to the ID of the repository's installation. | `false` | |
| installation-retrieval-payload | The payload used to retrieve the installation. | `false` | ${{ github.repository }} | | permissions | JSON-stringified permissions granted to the app token. Defaults to all the GitHub app permissions, see: https://docs.github.com/en/rest/apps/apps#create-an-installation-access-token-for-an-app | `false` | |
| permissions | JSON-stringified permissions granted to the app token. Defaults to all the GitHub app permissions, see: https://docs.github.com/en/rest/apps/apps#create-an-installation-access-token-for-an-app | `false` | | | github-api-url | Configure github API URL. | `false` | ${{ github.api_url }} |
| github-api-url | Configure github API URL. | `false` | ${{ github.api_url }} | | repository | The full name of the repository to operate on in owner/repo format. Defaults to the current repository. | `false` | ${{ github.repository }} |
| target-branch | branch to open pull release PR against (detected by default) | `false` | | | default-branch | Branch to open pull release PR against. Defaults to the repository's default branch. | `false` | |
| config-file | Pat to config file within the project. | `false` | .github/release-please-config.json | | config-file | Pat to config file within the project. | `false` | .github/release-please-config.json |
| manifest-file | Path to manifest file within the project. | `false` | .github/.release-please-manifest.json | | manifest-file | Path to manifest file within the project. | `false` | .github/.release-please-manifest.json |
| path | create a release from a path other than the repository's root | `false` | |
| fork | If true, send the PR from a fork. This requires the token to be a user that can create forks (e.g. not the default GITHUB_TOKEN) | `false` | false |
| proxy-server | Set proxy sever when you run this action behind a proxy. Format is host:port e.g. proxy-host.com:8080 | `false` | |
<!-- action-docs-inputs --> <!-- action-docs-inputs -->

View File

@@ -4,11 +4,12 @@ description: >-
Opinionated action for running release-please in manifest mode with optional Opinionated action for running release-please in manifest mode with optional
support to authenticate as a GitHub App. support to authenticate as a GitHub App.
author: "jimeh" author: "jimeh"
inputs: inputs:
token: token:
description: "GitHub token used to authenticate." description: "GitHub token used to authenticate."
required: false required: false
default: "${{ github.token }}" default: ${{ github.token }}
app-id: app-id:
description: >- description: >-
ID of the GitHub App to use for authentication. If set, takes precedence ID of the GitHub App to use for authentication. If set, takes precedence
@@ -19,53 +20,38 @@ inputs:
Private key of the GitHub App (can be Base64 encoded). Required when Private key of the GitHub App (can be Base64 encoded). Required when
app-id is provided. app-id is provided.
required: false required: false
installation-retrieval-mode: installation-id:
description: >- description: >-
The mode used to retrieve the installation for which the token will be ID of the installation for which the app token will be requested. Defaults
requested. Must be one of: id, organization, repository, or user. For to the ID of the repository's installation.
details see: https://github.com/tibdex/github-app-token
default: "repository"
installation-retrieval-payload:
description: "The payload used to retrieve the installation."
default: "${{ github.repository }}"
permissions: permissions:
description: >- description: >-
JSON-stringified permissions granted to the app token. Defaults to all the JSON-stringified permissions granted to the app token. Defaults to all the
GitHub app permissions, see: GitHub app permissions, see:
https://docs.github.com/en/rest/apps/apps#create-an-installation-access-token-for-an-app https://docs.github.com/en/rest/apps/apps#create-an-installation-access-token-for-an-app
github-api-url: github-api-url:
description: "Configure github API URL." description: Configure github API URL.
required: false required: false
default: "${{ github.api_url }}" default: ${{ github.api_url }}
target-branch: repository:
description: "Branch to open pull release PR against (detected by default)" description: >-
The full name of the repository to operate on in owner/repo format.
Defaults to the current repository.
default: ${{ github.repository }}
default-branch:
description: >-
Branch to open pull release PR against. Defaults to the repository's
default branch.
required: false required: false
default: "" default: ""
config-file: config-file:
description: "Pat to config file within the project." description: Pat to config file within the project.
required: false required: false
default: ".github/release-please-config.json" default: ".github/release-please-config.json"
manifest-file: manifest-file:
description: "Path to manifest file within the project." description: Path to manifest file within the project.
required: false required: false
default: ".github/.release-please-manifest.json" default: ".github/.release-please-manifest.json"
path:
description: >-
Create a release from a path other than the repository's root.
required: false
default: ""
fork:
description: >-
If true, send the PR from a fork. This requires the token to be a user
that can create forks (e.g. not the default GITHUB_TOKEN)
required: false
default: "false"
proxy-server:
description: >-
Set proxy sever when you run this action behind a proxy. Format is
host:port e.g. proxy-host.com:8080
required: false
default: ""
outputs: outputs:
release_created: release_created:
@@ -129,16 +115,16 @@ outputs:
runs: runs:
using: "composite" using: "composite"
steps: steps:
- uses: tibdex/github-app-token@v2 - uses: tibdex/github-app-token@v1
if: inputs.app-id != null && inputs.app-id != '' if: inputs.app-id != null && inputs.app-id != ''
id: github-app-token id: github-app-token
with: with:
app_id: ${{ inputs.app-id }} app_id: ${{ inputs.app-id }}
installation_retrieval_mode: ${{ inputs.installation-retrieval-mode }} installation_id: ${{ inputs.installation-id }}
installation_retrieval_payload: ${{ inputs.installation-retrieval-payload }}
github_api_url: ${{ inputs.github-api-url }} github_api_url: ${{ inputs.github-api-url }}
permissions: ${{ inputs.permissions }} permissions: ${{ inputs.permissions }}
private_key: ${{ inputs.private-key }} private_key: ${{ inputs.private-key }}
repository: ${{ github.repository }}
- name: resolve token - name: resolve token
id: token id: token
run: |- run: |-
@@ -147,16 +133,14 @@ runs:
APP_TOKEN: "${{ steps.github-app-token.outputs.token }}" APP_TOKEN: "${{ steps.github-app-token.outputs.token }}"
INPUT_TOKEN: "${{ inputs.token }}" INPUT_TOKEN: "${{ inputs.token }}"
shell: bash shell: bash
- uses: google-github-actions/release-please-action@v4 - uses: googleapis/release-please-action@v3
id: release-please id: release-please
with: with:
command: manifest
token: ${{ steps.token.outputs.token }} token: ${{ steps.token.outputs.token }}
target-branch: ${{ inputs.target-branch }} default-branch: ${{ inputs.default-branch }}
path: ${{ inputs.path }}
config-file: ${{ inputs.config-file }} config-file: ${{ inputs.config-file }}
manifest-file: ${{ inputs.manifest-file }} manifest-file: ${{ inputs.manifest-file }}
github-api-url: ${{ inputs.github-api-url }} github-api-url: ${{ inputs.github-api-url }}
github-graphql-url: ${{ inputs.github-api-url }} github-graphql-url: ${{ inputs.github-api-url }}
repo-url: ${{ inputs.repository }} repo-url: ${{ inputs.repository }}
fork: ${{ inputs.fork }}
proxy-server: ${{ inputs.proxy-server }}