mirror of
https://github.com/hashicorp/integration-release-action
synced 2026-04-05 19:06:14 +00:00
No description
- TypeScript 100%
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> |
||
|---|---|---|
| dist | ||
| lib | ||
| .gitignore | ||
| action.yml | ||
| index.ts | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Integration Release Action
This custom action notifies the HashiCorp integration-api that
a release for the consuming integration repository has occurred.
Inputs
github_token
Required
We recommend using a repository's default GITHUB_TOKEN, which are read-only by default.
integration_identifier
Required
release_version
Required
release_sha
Required
integration_strategy
Optional
This specifies the consumption strategy, for exceptional scenarios where the integration interface differs from what is specified in https://github.com/hashicorp/integration-template. This is a parameter you will not need to use to configure your notify-release-action, and is a parameter that is used internally by project members to handle edge cases.
Outputs
None
Example usage
A Single Integration
jobs:
notify-release:
runs-on: ubuntu-latest
steps:
- name: Checkout this repo
uses: actions/checkout@v3
- name: Checkout integration-release-action
uses: actions/checkout@v3
with:
repository: hashicorp/integration-release-action
path: ./integration-release-action
- name: Notify Release
uses: ./integration-release-action
with:
integration_identifier: "waypoint/hashicorp/brandoncorp-waypoint-plugin"
release_version: ${{ github.ref_name }}
release_sha: ${{ github.ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}
Multiple Integrations
Note
: This leverages GitHub actions matrix strategies
jobs:
notify-release:
runs-on: ubuntu-latest
strategy:
matrix:
integration_identifier:
- "vault/hashicorp/first-plugin"
- "vault/hashicorp/second-plugin"
# - add more integrations as needed. Limit 256
steps:
- name: Checkout this repo
uses: actions/checkout@v3
- name: Checkout integration-release-action
uses: actions/checkout@v3
with:
repository: hashicorp/integration-release-action
path: ./integration-release-action
- name: Notify Release
uses: ./integration-release-action
with:
integration_identifier: ${{ matrix.integration_identifier }}
release_version: ${{ github.ref_name }}
release_sha: ${{ github.ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}