VAULT-34830 actions(plugin-update): update plugins from enterprise (#31474)

* [VAULT-34830] actions(plugin-update): update plugins from enterprise

Signed-off-by: Ryan Cragun <me@ryan.ec>
This commit is contained in:
Ryan Cragun 2025-08-15 10:34:29 -06:00 committed by GitHub
parent 7af25674b4
commit b5b4a95280
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,6 +16,10 @@ on:
description: 'Version of the plugin with *NO* "v", e.g., 1.2.3'
required: true
type: string
ent-only:
description: Whether or not the plugin is enterprise only
required: true
type: boolean
reviewer:
description: 'Reviewer to tag on the PR'
required: false
@ -52,13 +56,13 @@ jobs:
git config user.name hc-github-team-secure-vault-ecosystem
git config user.email hc-github-team-secure-vault-ecosystem@users.noreply.github.com
- if: steps.metadata.outputs.is-ent-branch != 'true'
- if: ! inputs.ent-only
name: Update plugin
run: |
go get "github.com/hashicorp/${{ inputs.plugin }}@v${{ inputs.version }}"
go mod tidy
- if: steps.metadata.outputs.is-ent-branch == 'true'
- if: inputs.ent-only
name: Update Enterprise-only plugin
run: |
(cd vault_ent && go get "github.com/hashicorp/${{ inputs.plugin }}@v${{ inputs.version }}" && go mod tidy)