This custom action notifies the HashiCorp integration-api
that
a release for the consuming integration repository has occurred.
Required
We recommend using a repository's default GITHUB_TOKEN
, which are read-only by default.
Required
Required
Required
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.
None
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 }}
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 }}