Skip to content

hashicorp/integration-release-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 }}

About

No description or website provided.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •